Skip to content

Commit

Permalink
Removed 'enableDevelopmentMode' method
Browse files Browse the repository at this point in the history
  • Loading branch information
epiller committed Jan 10, 2020
1 parent bc1af5c commit c315aa4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
18 changes: 0 additions & 18 deletions src/LoRaModem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,24 +133,6 @@ bool LoRaModem::connect(OTAACredentials &otaaCredentials) {
return expectOk() && expectAccepted(30000);
}

bool LoRaModem::enableDevelopmentMode() {
log("********************************************************************************");
log("WARNING! Enabling development mode. Duty cycle on all channels will be decreased");
log(" significantly. You are doing this on your responsibility.");
log("");
log(" DO NOT USE THIS IN PRODUCTION");
log("********************************************************************************");
loraSerial->print("mac set ch dcycle 0 0\r\n");
loraSerial->print("mac set ch dcycle 1 0\r\n");
loraSerial->print("mac set ch dcycle 2 0\r\n");
for (auto i = 0; i < 3; ++i) {
if (!expectOk()) {
return false;
}
}
return true;
}

bool LoRaModem::reset(unsigned int retries) {
log("Resetting the modem.");
loraSerial->print("sys reset\r\n");
Expand Down
2 changes: 0 additions & 2 deletions src/LoRaModem.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ class LoRaModem : public Device<LoRaOptions> {
char *getModulationMode();
char *getOperationFrequency();

bool enableDevelopmentMode();

bool reset(unsigned int retries = 3);
void wakeUp();
void sleep(uint32_t milliseconds = 60000);
Expand Down

0 comments on commit c315aa4

Please sign in to comment.