瀏覽代碼

Disable SIM808 phone functionality when powering on the gps only

tags/v1.2.0
Bertrand Lemasle 6 年之前
父節點
當前提交
fcf9a68c0f
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      Hardware.cpp

+ 2
- 0
Hardware.cpp 查看文件

@@ -63,6 +63,8 @@ namespace hardware {


VEBOSE("gpsPowerOn"); VEBOSE("gpsPowerOn");
powerOn(); powerOn();
//SIM808 turns phone on by default but we don't need it
if(!networkPoweredCount) device.setPhoneFunctionality(SIM808_PHONE_FUNCTIONALITY::MINIMUM);
device.enableGps(); device.enableGps();
} }




Loading…
取消
儲存