diff --git a/src/main.cpp b/src/main.cpp index 63ef2300..fda59d8e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -449,7 +449,7 @@ void setup() { ESP_LOGI(TAG, "BME sensor initialized"); else { ESP_LOGE(TAG, "BME sensor could not be initialized"); - cfg.payloadmask &= ~MEMS_DATA; // switch off transmit of BME data + cfg.payloadmask &= (uint8_t)~MEMS_DATA; // switch off transmit of BME data } #endif diff --git a/src/rcommand.cpp b/src/rcommand.cpp index c69a5fd3..08c7618d 100644 --- a/src/rcommand.cpp +++ b/src/rcommand.cpp @@ -401,9 +401,9 @@ void set_enscount(uint8_t val[]) { ESP_LOGI(TAG, "Remote command: set ENS_COUNT to %s", val[0] ? "on" : "off"); cfg.enscount = val[0] ? 1 : 0; if (val[0]) - cfg.payloadmask |= SENSOR1_DATA; + cfg.payloadmask |= (uint8_t)SENSOR1_DATA; else - cfg.payloadmask &= ~SENSOR1_DATA; + cfg.payloadmask &= (uint8_t)~SENSOR1_DATA; } void set_loadconfig(uint8_t val[]) {