fix missing uint_8 casting

This commit is contained in:
cyberman54 2022-01-22 13:56:40 +01:00
parent 64f82dcaab
commit 3e4da9f1e9
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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[]) {