mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
Clarify GPIO error messages
This commit is contained in:
parent
18927d2450
commit
895ebc07a2
1 changed files with 4 additions and 3 deletions
|
@ -378,10 +378,11 @@ String get_event_message_string(EVENTS_ENUM_TYPE event) {
|
||||||
return "Failed to syncronise with the NTP Server. BMS will reset every 24 hours from when the emulator was "
|
return "Failed to syncronise with the NTP Server. BMS will reset every 24 hours from when the emulator was "
|
||||||
"powered on";
|
"powered on";
|
||||||
case EVENT_GPIO_CONFLICT:
|
case EVENT_GPIO_CONFLICT:
|
||||||
return "There is a GPIO pin conflict between SW components: " + esp32hal->failed_allocator() + " / " +
|
return "GPIO Pin Conflict: The pin used by '" + esp32hal->failed_allocator() + "' is already allocated by '" +
|
||||||
esp32hal->conflicting_allocator();
|
esp32hal->conflicting_allocator() + "'. Please check your configuration and assign different pins.";
|
||||||
case EVENT_GPIO_NOT_DEFINED:
|
case EVENT_GPIO_NOT_DEFINED:
|
||||||
return "SW module requires GPIO that is not defined for this hardware: " + esp32hal->failed_allocator();
|
return "Missing GPIO Assignment: The component '" + esp32hal->failed_allocator() +
|
||||||
|
"' requires a GPIO pin that isn't configured. Please define a valid pin number in your settings.";
|
||||||
default:
|
default:
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue