things4u / ESP-1ch-Gateway

Version 6 of the single channel gateway
MIT License
370 stars 149 forks source link

'rstTime' was not declared in this scope #30

Closed jlstanus closed 4 years ago

jlstanus commented 4 years ago

/home/icity/Arduino/ESP-sc-gway/ESP-sc-gway.ino: In function 'void loop()': ESP-sc-gway:832: error: 'rstTime' was not declared in this scope if ((nowSeconds - rstTime) >= _RST_INTERVAL) { // Wake up every xx seconds

In Arduino 1.6.x and 1.8.x but rstTime seems to be declared at uint32_t rstTime = 0;

bv73 commented 4 years ago

Line above, where the rstTime variable is declared, remove the backslash in the comment. Like // last time we sent a pull_data request to server

jlstanus commented 4 years ago

Ok, thank you, this is fixed

platenspeler commented 4 years ago

Fixed in the Code. Sorry. no idea how the file got changed with \