Skip to content

Commit

Permalink
fix issue that causes master to turn on when off adjust is negative; …
Browse files Browse the repository at this point in the history
…bump minor revision number to 2; add explicit platformio espressif version number to indicate using esp8266 core 3.0.2
  • Loading branch information
rayshobby committed Jun 4, 2023
1 parent 5970a3a commit e9e04b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e9e04b0

Please sign in to comment.