From 036bec9888c79a3fb8306d04b10eb16e868b4ae1 Mon Sep 17 00:00:00 2001 From: Shabir Mohamed Date: Fri, 12 Jun 2015 00:48:19 +0530 Subject: [PATCH] commented out the watch_dog library stuff --- .../sketches/sensebot/SenseBotEthernetAgent.ino | 16 ++++++++-------- .../sketches/sensebot_wifi/SenseBotWifiAgent.ino | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/modules/distribution/src/sketches/sensebot/SenseBotEthernetAgent.ino b/modules/distribution/src/sketches/sensebot/SenseBotEthernetAgent.ino index 0b7a5a73..81b0bb1b 100644 --- a/modules/distribution/src/sketches/sensebot/SenseBotEthernetAgent.ino +++ b/modules/distribution/src/sketches/sensebot/SenseBotEthernetAgent.ino @@ -59,7 +59,7 @@ void setup() { connectHttp(); setupResource(); - wdt_enable(WDTO_4S); +// wdt_enable(WDTO_4S); } @@ -68,15 +68,15 @@ void loop() { protothread1(&pushThread, 1000); - listen(); +// listen(); // wdt_reset(); // Check connection - if( !cc3000.checkConnected() ){ - while(1){ - } - } +// if( !cc3000.checkConnected() ){ +// while(1){ +// } +// } - wdt_reset(); +// wdt_reset(); drive(); } @@ -117,7 +117,7 @@ static int protothread1(struct pt *pt, int interval) { // batches all the required pin values together and pushes once // Pushes data in 1 second interval pushData(); - wdt_reset(); +// wdt_reset(); } else { pushClient.close(); cc3000.disconnect(); diff --git a/modules/distribution/src/sketches/sensebot_wifi/SenseBotWifiAgent.ino b/modules/distribution/src/sketches/sensebot_wifi/SenseBotWifiAgent.ino index 77eed350..59640e87 100644 --- a/modules/distribution/src/sketches/sensebot_wifi/SenseBotWifiAgent.ino +++ b/modules/distribution/src/sketches/sensebot_wifi/SenseBotWifiAgent.ino @@ -59,7 +59,7 @@ void setup() { connectHttp(); setupResource(); - wdt_enable(WDTO_4S); +// wdt_enable(WDTO_4S); } @@ -68,15 +68,15 @@ void loop() { protothread1(&pushThread, 1000); - listen(); +// listen(); // wdt_reset(); // Check connection - if( !cc3000.checkConnected() ){ - while(1){ - } - } +// if( !cc3000.checkConnected() ){ +// while(1){ +// } +// } - wdt_reset(); +// wdt_reset(); drive(); } @@ -117,7 +117,7 @@ static int protothread1(struct pt *pt, int interval) { // batches all the required pin values together and pushes once // Pushes data in 1 second interval pushData(); - wdt_reset(); +// wdt_reset(); } else { pushClient.close(); cc3000.disconnect();