only:nicer error message
This commit is contained in:
parent
5e00fb7fa1
commit
f54d7d56bc
|
@ -228,10 +228,11 @@ int gpiochips_init(void) {
|
|||
if (chip->base == Gpio::Unassigned)
|
||||
continue;
|
||||
|
||||
if (chip->chip->init() < 0) {
|
||||
int ret = chip->chip->init();
|
||||
if (ret < 0) {
|
||||
#if EFI_PROD_CODE
|
||||
// todo: adjust unit tests to validate this fatal
|
||||
criticalError("Failed to init chip %d", i);
|
||||
criticalError("Failed to init chip %d: %d", i, ret);
|
||||
#else
|
||||
chip->base = Gpio::Unassigned;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue