mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-09 21:01:39 +00:00
Idle for SEN5X on communication error
This commit is contained in:
parent
89e1532c79
commit
e3f345c59b
@ -657,9 +657,11 @@ bool SEN5XSensor::getMetrics(meshtastic_Telemetry *measurement)
|
|||||||
} else if (response == 1) {
|
} else if (response == 1) {
|
||||||
// TODO return because data was not ready yet
|
// TODO return because data was not ready yet
|
||||||
// Should this return false?
|
// Should this return false?
|
||||||
|
idle();
|
||||||
return false;
|
return false;
|
||||||
} else if (response == 2) {
|
} else if (response == 2) {
|
||||||
// Return with error for non-existing data
|
// Return with error for non-existing data
|
||||||
|
idle();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user