1
0
Fork 0
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:
Pawel Spychalski (DzikuVx) 2017-01-22 19:57:27 +01:00
parent 9569c0b5ee
commit 297ad70c5d
9 changed files with 161 additions and 142 deletions

View file

@ -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;