浏览代码

Fixed compilation when network backup are disabled

tags/v1.2.2
Bertrand Lemasle 6 年前
父节点
当前提交
e2ca7be395
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. +2
    -0
      src/Network.cpp
  2. +2
    -0
      src/Network.h

+ 2
- 0
src/Network.cpp 查看文件

@@ -62,9 +62,11 @@ namespace network {
!= 0;
}
#if BACKUP_ENABLE_NETWORK
bool enableGprs() {
return hardware::sim808::device.enableGprs(config::main::value.network.apn);
}
#endif
bool sendSms(const char * msg) {
const char * phoneNumber = config::main::value.contactPhone;


+ 2
- 0
src/Network.h 查看文件

@@ -10,7 +10,9 @@ namespace network {
SIM808RegistrationStatus waitForRegistered(uint32_t timeout, bool relativeToPowerOnTime = true);
bool isAvailable(SIM808_NETWORK_REGISTRATION_STATE state);
#if BACKUP_ENABLE_NETWORK
bool enableGprs();
#endif
bool sendSms(const char * msg);
}

正在加载...
取消
保存