Update main.cpp

This commit is contained in:
Davide Nesi 2019-03-07 15:00:11 +01:00 committed by GitHub
parent 4e81e572a8
commit 3f45832864
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,7 @@ void setup() {
#endif #endif
// setup debug output or silence device // setup debug output or silence device
#ifdef VERBOSE #if(VERBOSE)
Serial.begin(115200); Serial.begin(115200);
esp_log_level_set("*", ESP_LOG_VERBOSE); esp_log_level_set("*", ESP_LOG_VERBOSE);
#else #else
@ -136,7 +136,7 @@ void setup() {
ESP_LOGI(TAG, "Starting %s v%s", PRODUCTNAME, PROGVERSION); ESP_LOGI(TAG, "Starting %s v%s", PRODUCTNAME, PROGVERSION);
// print chip information on startup if in verbose mode // print chip information on startup if in verbose mode
#ifdef VERBOSE #if(VERBOSE)
esp_chip_info_t chip_info; esp_chip_info_t chip_info;
esp_chip_info(&chip_info); esp_chip_info(&chip_info);
ESP_LOGI(TAG, ESP_LOGI(TAG,
@ -230,7 +230,7 @@ void setup() {
batt_voltage = read_voltage(); batt_voltage = read_voltage();
#endif #endif
#ifdef USE_OTA #if(USE_OTA)
strcat_P(features, " OTA"); strcat_P(features, " OTA");
// reboot to firmware update mode if ota trigger switch is set // reboot to firmware update mode if ota trigger switch is set
if (cfg.runmode == 1) { if (cfg.runmode == 1) {
@ -307,7 +307,7 @@ void setup() {
assert(spi_init() == ESP_OK); assert(spi_init() == ESP_OK);
#endif #endif
#ifdef VENDORFILTER #if(VENDORFILTER)
strcat_P(features, " OUIFLT"); strcat_P(features, " OUIFLT");
#endif #endif
@ -348,7 +348,7 @@ void setup() {
#ifdef HAS_LORA #ifdef HAS_LORA
// output LoRaWAN keys to console // output LoRaWAN keys to console
#ifdef VERBOSE #if(VERBOSE)
showLoraKeys(); showLoraKeys();
#endif #endif
#endif #endif