Procházet zdrojové kódy

Fixed compilation when network backup are disabled

tags/v1.2.2
Bertrand Lemasle před 6 roky
rodič
revize
e2ca7be395
2 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. +2
    -0
      src/Network.cpp
  2. +2
    -0
      src/Network.h

+ 2
- 0
src/Network.cpp Zobrazit soubor

@@ -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 Zobrazit soubor

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

Načítá se…
Zrušit
Uložit