Fix compiler warning

This commit is contained in:
Stephan Hadinger 2021-11-12 09:13:01 +01:00
parent e36b375fcb
commit 437c72cfa9
1 changed files with 2 additions and 4 deletions

View File

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