From e9e04b006f82a29f2bd2317770a170402fe1bca6 Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 4 Jun 2023 13:50:04 -0400 Subject: [PATCH] fix issue that causes master to turn on when off adjust is negative; bump minor revision number to 2; add explicit platformio espressif version number to indicate using esp8266 core 3.0.2 --- defines.h | 2 +- main.cpp | 2 ++ platformio.ini | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/defines.h b/defines.h index cb9758cf..47575e85 100755 --- a/defines.h +++ b/defines.h @@ -36,7 +36,7 @@ typedef unsigned long ulong; // if this number is different from the one stored in non-volatile memory // a device reset will be automatically triggered -#define OS_FW_MINOR 1 // Firmware minor version +#define OS_FW_MINOR 2 // Firmware minor version /** Hardware version base numbers */ #define OS_HW_VERSION_BASE 0x00 // OpenSprinkler diff --git a/main.cpp b/main.cpp index 32086901..d6641681 100644 --- a/main.cpp +++ b/main.cpp @@ -893,6 +893,8 @@ void do_loop() // skip if this is the master station if (mas_id == sid + 1) continue; + if(pd.station_qid[sid]==255) continue; // skip if station is not in the queue + q = pd.queue + pd.station_qid[sid]; if (os.bound_to_master(q->sid, mas)) { diff --git a/platformio.ini b/platformio.ini index 48dca934..8dc1175d 100644 --- a/platformio.ini +++ b/platformio.ini @@ -16,7 +16,7 @@ src_dir = . include_dir = . [env:d1_mini] -platform = espressif8266 +platform = espressif8266@3.2.0 board = d1_mini framework = arduino lib_ldf_mode = deep