This website works better with JavaScript.
Home
Explore
Help
Sign In
GPS
/
gpstracker-firmware
mirror of
https://github.com/blemasle/gpstracker-firmware.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
8
Wiki
Activity
Browse Source
Removed useless calls to rtc::powerOn && rtc::powerOff
tags/v1.2.0
Bertrand Lemasle
7 years ago
parent
455276fdc8
commit
6e0060c432
2 changed files
with
0 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-2
GpsTracker/Core.cpp
+0
-2
GpsTracker/MainUnit.cpp
+ 0
- 2
GpsTracker/Core.cpp
View File
@@ -16,9 +16,7 @@ namespace core {
if (gpsStatus > SIM808_GPS_STATUS::NO_FIX) {
tmElements_t time;
gps::getTime(time);
rtc::powerOn();
rtc::setTime(time);
rtc::powerOff();
positions::appendLast(battery, gpsStatus);
+ 0
- 2
GpsTracker/MainUnit.cpp
View File
@@ -12,9 +12,7 @@ namespace mainunit {
}
void interruptIn(uint16_t seconds) {
rtc::powerOn();
rtc::setAlarm(seconds);
rtc::powerOff();
pinMode(RTC_WAKE, INPUT);
attachInterrupt(digitalPinToInterrupt(RTC_WAKE), interrupt, FALLING);
Write
Preview
Loading…
Cancel
Save