mirror of https://github.com/arendst/Tasmota.git
Fix compiler warning
This commit is contained in:
parent
e36b375fcb
commit
437c72cfa9
|
@ -1841,16 +1841,14 @@ int8_t ParseSerialConfig(const char *pstr)
|
|||
}
|
||||
|
||||
#ifdef ESP8266
|
||||
SerConfu8 ConvertSerialConfigESP8286(uint8_t serial_config) {
|
||||
SerConfu8 ConvertSerialConfig(uint8_t serial_config) {
|
||||
return (SerConfu8)pgm_read_byte(kTasmotaSerialConfig + serial_config);
|
||||
}
|
||||
#define ConvertSerialConfig(a) ConvertSerialConfigESP8286(a)
|
||||
#endif // ESP8266
|
||||
#ifdef ESP32
|
||||
uint32_t ConvertSerialConfigESP32(uint8_t serial_config) {
|
||||
uint32_t ConvertSerialConfig(uint8_t serial_config) {
|
||||
return (uint32_t)pgm_read_dword(kTasmotaSerialConfig + serial_config);
|
||||
}
|
||||
#define ConvertSerialConfig(a) ConvertSerialConfigESP32(a)
|
||||
#endif // ESP32
|
||||
|
||||
// workaround disabled 05.11.2021 solved with https://github.com/espressif/arduino-esp32/pull/5549
|
||||
|
|
Loading…
Reference in New Issue