Ver a proveniência

Made sure devices are powered off on sleep and obtained 112 bytes(???)

tags/v1.2.0
Bertrand Lemasle há 6 anos
ascendente
cometimento
f96b40c6c4
1 ficheiros alterados com 5 adições e 1 eliminações
  1. +5
    -1
      MainUnit.cpp

+ 5
- 1
MainUnit.cpp Ver ficheiro

@@ -10,8 +10,12 @@ namespace mainunit {
namespace details {

void prepareSleep() {
//forcing the power off of ALL devices for safety
hardware::sim808::powerOff();
hardware::i2c::powerOff(true);

hardware::sim808::simSerial.end(); //avoid woke up by SoftwareSerial interrupt
delay(5); //ensure message have been printed out
delay(5); //ensure log messages have been printed out
}

void wokeUp() {


Carregando…
Cancelar
Guardar