Skip to content

Commit 14e2267

Browse files
committed
cleaning up some lines of empty space
1 parent e5b0242 commit 14e2267

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

OTGW-firmware.ino

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ void setup() {
4444
OTGWSerial.println(F("\r\n[OTGW firmware - Nodoshop version]\r\n"));
4545
OTGWSerial.printf("Booting....[%s]\r\n\r\n", String(_FW_VERSION).c_str());
4646
rebootCount = updateRebootCount();
47+
WatchDogEnabled(0); // turn off watchdog
4748

4849
//setup randomseed the right way
4950
randomSeed(RANDOM_REG32); //This is 8266 HWRNG used to seed the Random PRNG: Read more: https://config9.com/arduino/getting-a-truly-random-number-in-arduino/
@@ -80,19 +81,17 @@ void setup() {
8081
checkOTWGpicforupdate();
8182
initSensors(); // init DS18B20
8283
initOutputs();
83-
8484
initWatchDog(); // setup the WatchDog
85+
WatchDogEnabled(1); // turn on watchdog
8586
sendOTGWbootcmd();
8687
//Blink LED2 to signal setup done
8788
setLed(LED1, OFF);
8889
blinkLED(LED2, 3, 100);
8990
setLed(LED2, OFF);
9091
}
91-
9292
//=====================================================================
9393

9494
//===[ blink status led ]===
95-
9695
void setLed(uint8_t led, uint8_t status){
9796
pinMode(led, OUTPUT);
9897
digitalWrite(led, status);
@@ -153,10 +152,9 @@ void doTaskEvery60s(){
153152
//== do tasks ==
154153
//if no wifi, try reconnecting (once a minute)
155154
if (WiFi.status() != WL_CONNECTED)
156-
{
155+
{
157156
//disconnected, try to reconnect then...
158157
WatchDogEnabled(0); // turn off watchdog
159-
//restartWiFi(CSTR(settingHostname), 30);
160158
WiFi.begin(); //simply reconnect?
161159
WatchDogEnabled(1); // turn on watchdog
162160
if (WiFi.status() == WL_CONNECTED)

version.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
#define _VERSION_MAJOR 0
33
#define _VERSION_MINOR 8
44
#define _VERSION_PATCH 6
5-
#define _VERSION_BUILD 1049
6-
#define _VERSION_GITHASH "3656042"
5+
#define _VERSION_BUILD 1050
6+
#define _VERSION_GITHASH "e5b0242"
77
#define _VERSION_PRERELEASE beta
8-
#define _VERSION_DATE "10-09-2021"
9-
#define _VERSION_TIME "14:07:20"
8+
#define _VERSION_DATE "11-09-2021"
9+
#define _VERSION_TIME "18:03:54"
1010
#define _SEMVER_CORE "0.8.6"
11-
#define _SEMVER_BUILD "0.8.6+1049"
12-
#define _SEMVER_GITHASH "0.8.6+3656042"
13-
#define _SEMVER_FULL "0.8.6-beta+3656042"
14-
#define _SEMVER_NOBUILD "0.8.6-beta (10-09-2021)"
15-
#define _VERSION "0.8.6-beta+3656042 (10-09-2021)"
11+
#define _SEMVER_BUILD "0.8.6+1050"
12+
#define _SEMVER_GITHASH "0.8.6+e5b0242"
13+
#define _SEMVER_FULL "0.8.6-beta+e5b0242"
14+
#define _SEMVER_NOBUILD "0.8.6-beta (11-09-2021)"
15+
#define _VERSION "0.8.6-beta+e5b0242 (11-09-2021)"
1616
//The version information is created automatically, more information here: https://github.com/rvdbreemen/autoinc-semver

0 commit comments

Comments
 (0)