mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 05:36:37 +00:00
Fix std::to_string compiler error
This commit is contained in:
parent
5b83b4ca88
commit
a96e82cc50
@ -227,7 +227,11 @@ const char* Esp32Device::get_chip_model()
|
||||
*/
|
||||
_chip_model = ESP.getChipModel();
|
||||
_chip_model += " rev";
|
||||
#if ESP_ARDUINO_VERSION_MAJOR >= 2
|
||||
_chip_model += std::to_string(ESP.getChipRevision());
|
||||
#else
|
||||
_chip_model += String(ESP.getChipRevision()).c_str();
|
||||
#endif
|
||||
return _chip_model.c_str();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user