1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-17 05:15:21 +03:00

experimenting with some undefined comparators in strict mode

This commit is contained in:
cTn 2014-08-14 16:23:08 +02:00 committed by Dominic Clifton
parent f1df9ade05
commit 8dabc3ac91
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;
}