mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Improve model reporting
This commit is contained in:
parent
3a6b8d5605
commit
7c966e7a2d
@ -126,7 +126,10 @@ String halGetChipModel()
|
|||||||
{
|
{
|
||||||
String model((char *)0);
|
String model((char *)0);
|
||||||
model.reserve(128);
|
model.reserve(128);
|
||||||
|
|
||||||
|
#if defined(STM32F4xx)
|
||||||
model = F("STM32");
|
model = F("STM32");
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ESP8266
|
#if ESP8266
|
||||||
model = F("ESP8266");
|
model = F("ESP8266");
|
||||||
@ -148,7 +151,7 @@ String halGetChipModel()
|
|||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
model = F("Unknown ESP");
|
model = F("Unknown ESP32");
|
||||||
}
|
}
|
||||||
model += F(" rev");
|
model += F(" rev");
|
||||||
model += chip_info.revision;
|
model += chip_info.revision;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user