瀏覽代碼

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

tags/v1.2.0
Bertrand Lemasle 6 年之前
父節點
當前提交
f96b40c6c4
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      MainUnit.cpp

+ 5
- 1
MainUnit.cpp 查看文件

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


Loading…
取消
儲存