ソースを参照

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);
}

読み込み中…
キャンセル
保存