Improved error handling in HAL Digital and Solenoid systems.

Change-Id: Iafd68c5bd143e9ee87ecf714bccb2c77e599b649
This commit is contained in:
Colby Skeggs
2015-02-06 17:15:41 -08:00
committed by Dustin Spicuzza
parent 91891081b9
commit d690974ad0
2 changed files with 75 additions and 21 deletions

View File

@@ -49,7 +49,7 @@ bool getSolenoid(void* solenoid_port_pointer, int32_t *status) {
void setSolenoid(void* solenoid_port_pointer, bool value, int32_t *status) {
solenoid_port_t* port = (solenoid_port_t*) solenoid_port_pointer;
port->module->SetSolenoid(port->pin, value);
*status = port->module->SetSolenoid(port->pin, value);
}
int getPCMSolenoidBlackList(void* solenoid_port_pointer, int32_t *status){