mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-31 19:05:44 +00:00
Idle for SEN5X on communication error
This commit is contained in:
parent
ae995083e0
commit
9f3b7d99f7
@ -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