Przeglądaj źródła

Merge branch 'battery-drain-fix'

tags/v1.4.3
Bertrand Lemasle 6 lat temu
rodzic
commit
3a6d49b82b
3 zmienionych plików z 6 dodań i 3 usunięć
  1. +2
    -0
      src/Core.cpp
  2. +3
    -2
      src/MainUnit.cpp
  3. +1
    -1
      src/config/System.h

+ 2
- 0
src/Core.cpp Wyświetl plik

@@ -61,6 +61,8 @@ namespace core {
}
if (acquired) updateRtcTime();
hardware::sim808::powerOff(); //forcing power off, regardless of the counts and current use
mainunit::deepSleep(sleepTime);
}


+ 3
- 2
src/MainUnit.cpp Wyświetl plik

@@ -34,9 +34,10 @@ namespace mainunit {
}
void interruptIn(uint16_t seconds) {
rtc::setAlarm(seconds);
pinMode(RTC_WAKE, INPUT);
EIFR |= 1 << INTF1; //forcing interrupt clear as sometimes, it does not seems to work (1 second appart positions)
rtc::setAlarm(seconds);
attachInterrupt(digitalPinToInterrupt(RTC_WAKE), interrupt, FALLING);
}


+ 1
- 1
src/config/System.h Wyświetl plik

@@ -3,7 +3,7 @@
#define CONFIG_ADDR 0 ///< Address of the config block in the I2C EEPROM chip.
#define CONFIG_RESERVED_SIZE 128 ///< Reserved size for the config block in the I2C EEPROM chip.
#define CONFIG_SEED 14 ///< Seed use to detect invalid or outdate configuration data.
#define VERSION "1.42" /// Version string, only used for indicative purpose.
#define VERSION "1.43" /// Version string, only used for indicative purpose.
/**


Ładowanie…
Anuluj
Zapisz