Multitech xDot Utils
Diff: MultitechDot.cpp
- Revision:
- 3:7fa5603c10dc
- Parent:
- 2:8d1c64670642
- Child:
- 4:db99b2a7d062
diff -r 8d1c64670642 -r 7fa5603c10dc MultitechDot.cpp --- a/MultitechDot.cpp Mon Feb 19 16:11:52 2018 +0200 +++ b/MultitechDot.cpp Wed Feb 21 12:52:15 2018 +0200 @@ -17,6 +17,7 @@ _config = config; this->setLogLevel(config->log_level); + this->setDisableDutyCycle(config->disable_duty_cycle); logInfo("Start configuring the device"); if (!this->getStandbyFlag()) { @@ -102,7 +103,7 @@ } logInfo("TX datarate -------------- %s", this->DataRateStr(this->getTxDataRate()).c_str()); logInfo("TX power ----------------- %lu dBm", this->getTxPower()); - logInfo("atnenna gain ------------- %u dBm", this->getAntennaGain()); + logInfo("Antenna gain ------------- %u dBm", this->getAntennaGain()); } void MultitechDot::update_ota_config_name_phrase(std::string network_name, std::string network_passphrase, @@ -437,11 +438,11 @@ // it is automatically configured when INTERRUPT or RTC_ALARM_OR_INTERRUPT is the wakeup source and deepsleep is true in the mDot::sleep call } else { // configure WAKE pin (connected to S2 on xDot-DK) as the pin that will wake the xDot from low power modes - // other pins can be confgured instead: GPIO0-3 or UART_RX + // other pins can be configured instead: GPIO0-3 or UART_RX this->setWakePin(WAKE); } - logInfo("%ssleeping until interrupt on %s pin", deepsleep ? "deep" : "", + logInfo("%s sleeping until interrupt on %s pin", deepsleep ? "deep" : "", deepsleep ? "WAKE" : this->pinName2Str(this->getWakePin()).c_str()); logInfo("application will %s after waking up", deepsleep ? "execute from beginning" : "resume"); @@ -480,11 +481,11 @@ // it is automatically configured when INTERRUPT or RTC_ALARM_OR_INTERRUPT is the wakeup source and deepsleep is true in the this->sleep call } else { // configure WAKE pin (connected to S2 on xDot-DK) as the pin that will wake the xDot from low power modes - // other pins can be confgured instead: GPIO0-3 or UART_RX + // other pins can be configured instead: GPIO0-3 or UART_RX this->setWakePin(WAKE); } - logInfo("%ssleeping %lus or until interrupt on %s pin", deepsleep ? "deep" : "", delay_s, + logInfo("%s sleeping %lus or until interrupt on %s pin", deepsleep ? "deep" : "", delay_s, deepsleep ? "WAKE" : this->pinName2Str(this->getWakePin()).c_str()); logInfo("application will %s after waking up", deepsleep ? "execute from beginning" : "resume");