1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 11:29:53 +03:00

experimenting with some undefined comparators in strict mode

This commit is contained in:
cTn 2014-08-14 16:23:08 +02:00
parent 6138c06fa4
commit d3d933a704
3 changed files with 5 additions and 3 deletions

View file

@ -193,7 +193,7 @@ function read_serial(info) {
function sensor_status(sensors_detected) {
// initialize variable (if it wasn't)
if (sensor_status.previous_sensors_detected === 'undefined') {
if (!sensor_status.previous_sensors_detected) {
sensor_status.previous_sensors_detected = 0;
}