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:
parent
6138c06fa4
commit
d3d933a704
3 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue