Pārlūkot izejas kodu

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

tags/v1.2.0
Bertrand Lemasle pirms 6 gadiem
vecāks
revīzija
f96b40c6c4
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. +5
    -1
      MainUnit.cpp

+ 5
- 1
MainUnit.cpp Parādīt failu

@@ -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() {


Notiek ielāde…
Atcelt
Saglabāt