The field version of the solarnano grid on the ionQubes
Fork of SolarNanoGridv3 by
Diff: Battery/Battery.cpp
- Revision:
- 25:1979c129acb0
- Parent:
- 24:6aba7f16e0c6
- Child:
- 28:e85a86fc8b59
--- a/Battery/Battery.cpp Wed Jun 15 00:54:44 2016 +0000 +++ b/Battery/Battery.cpp Wed Jun 15 01:53:07 2016 +0000 @@ -261,7 +261,7 @@ set_time(now); now= time(NULL); struct tm * timeInf = localtime(&now); - DBG ("Time is now: %04d-%02d-%02d %02d:%02d:%02d \n\r",timeInf->tm_year+1900,timeInf->tm_mon+1,timeInf->tm_mday,timeInf->tm_hour, timeInf->tm_min,timeInf->tm_sec); + DBG ("Time is now: %04d-%02d-%02d %02d:%02d:%02d",timeInf->tm_year+1900,timeInf->tm_mon+1,timeInf->tm_mday,timeInf->tm_hour, timeInf->tm_min,timeInf->tm_sec); break; } @@ -276,7 +276,7 @@ if (maxChargeRate<0.0f) { maxChargeRate=0.0f; } - DBG ("Max charge %f \n\r",maxChargeRate); + DBG ("Max charge %f",maxChargeRate); break; } @@ -417,6 +417,7 @@ sendingFile=0; flagStartFileTx=0; INFO("No more files to send.") + startCharge = true; checkOut(); } } @@ -727,10 +728,9 @@ void Battery::disableInt(void) { // Detaches all interrupts: - // button->detach(); - // nrfInt->detach(); txWatch->detach(); delay->detach(); + nrf->setPwrDown(); return; }