Skip to content

Commit

Permalink
Update RiverSpy5.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
riverspy authored Sep 16, 2019
1 parent cd48904 commit 2e75ec8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions RiverSpy5.ino
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ void loop()
// ADCSRA = ADCSRA | bit (ADEN); // enable ADC
digitalWrite(SENSOR_ON, HIGH); // turn on the 5V supply to the underwater/LIDAR sensorr
pinMode(A3,OUTPUT); // enable the softserial TX line
tfmini.begin(&mySerial);
tfmini.begin(&mySerial);
delay(100);

while (mySerial.available()>0)
Expand Down Expand Up @@ -428,11 +428,14 @@ void loop()

UpdateScreenData(Levels[Slot], LastLevel(Slot));
TrackCP(CP_TURN_ON_PHONE);

LeavePhoneOn = false; // the default is to turn off the phone between readings

if(PhoneOK = !PhoneOn())
{
turnOnDelay = now() - turnOnDelay; // update the time from the real time clock on the SIM900
wdt_reset();
delay(1000);
wdt_reset();
TrackCP(CP_PHONE_IS_ON);
if (GetRealTime(GaugeID) > 0)
{ // if we get a valid time, update the time correction factor
Expand Down

0 comments on commit 2e75ec8

Please sign in to comment.