smart diag into bench test
This commit is contained in:
parent
a223ec7ab9
commit
f5b1191d85
|
@ -71,13 +71,15 @@ void benchOn(OutputPin* output) {
|
||||||
static char pin_error[64];
|
static char pin_error[64];
|
||||||
|
|
||||||
void benchOff(OutputPin* output) {
|
void benchOff(OutputPin* output) {
|
||||||
|
#if EFI_PROD_CODE
|
||||||
brain_pin_diag_e diag = gpiochips_getDiag(output->brainPin);
|
brain_pin_diag_e diag = gpiochips_getDiag(output->brainPin);
|
||||||
if (diag == PIN_OK) {
|
if (diag == PIN_INVALID) {
|
||||||
efiPrintf("Diag says OK");
|
efiPrintf("No Diag on this pin");
|
||||||
} else {
|
} else {
|
||||||
pinDiag2string(pin_error, sizeof(pin_error), diag);
|
pinDiag2string(pin_error, sizeof(pin_error), diag);
|
||||||
efiPrintf("Diag says %s", pin_error);
|
efiPrintf("Diag says %s", pin_error);
|
||||||
}
|
}
|
||||||
|
#endif // EFI_PROD_CODE
|
||||||
output->setValue(false);
|
output->setValue(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue