소스 검색

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

불러오는 중...
취소
저장