fix missing uint_8 casting
This commit is contained in:
parent
64f82dcaab
commit
3e4da9f1e9
@ -449,7 +449,7 @@ void setup() {
|
|||||||
ESP_LOGI(TAG, "BME sensor initialized");
|
ESP_LOGI(TAG, "BME sensor initialized");
|
||||||
else {
|
else {
|
||||||
ESP_LOGE(TAG, "BME sensor could not be initialized");
|
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
|
#endif
|
||||||
|
|
||||||
|
@ -401,9 +401,9 @@ void set_enscount(uint8_t val[]) {
|
|||||||
ESP_LOGI(TAG, "Remote command: set ENS_COUNT to %s", val[0] ? "on" : "off");
|
ESP_LOGI(TAG, "Remote command: set ENS_COUNT to %s", val[0] ? "on" : "off");
|
||||||
cfg.enscount = val[0] ? 1 : 0;
|
cfg.enscount = val[0] ? 1 : 0;
|
||||||
if (val[0])
|
if (val[0])
|
||||||
cfg.payloadmask |= SENSOR1_DATA;
|
cfg.payloadmask |= (uint8_t)SENSOR1_DATA;
|
||||||
else
|
else
|
||||||
cfg.payloadmask &= ~SENSOR1_DATA;
|
cfg.payloadmask &= (uint8_t)~SENSOR1_DATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_loadconfig(uint8_t val[]) {
|
void set_loadconfig(uint8_t val[]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user