mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-24 16:55:22 +03:00
dynamic polling interval on receiver page
This commit is contained in:
parent
9569c0b5ee
commit
297ad70c5d
9 changed files with 161 additions and 142 deletions
|
@ -442,6 +442,11 @@ function sensor_status_hash(hw_status)
|
|||
* @deprecated
|
||||
*/
|
||||
function sensor_status(sensors_detected) {
|
||||
|
||||
if (typeof SENSOR_STATUS === 'undefined') {
|
||||
return;
|
||||
}
|
||||
|
||||
SENSOR_STATUS.isHardwareHealthy = 1;
|
||||
SENSOR_STATUS.gyroHwStatus = have_sensor(sensors_detected, 'gyro') ? 1 : 0;
|
||||
SENSOR_STATUS.accHwStatus = have_sensor(sensors_detected, 'acc') ? 1 : 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue