mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 10:19:29 +02:00
Add W formatting and contactor state
This commit is contained in:
parent
ff228d9c7d
commit
3bfe61cb87
2 changed files with 50 additions and 5 deletions
|
@ -118,4 +118,14 @@ void onOTAProgress(size_t current, size_t final);
|
|||
*/
|
||||
void onOTAEnd(bool success);
|
||||
|
||||
/**
|
||||
* @brief Formats power values
|
||||
*
|
||||
* @param[in] float or uint16_t
|
||||
*
|
||||
* @return string: values
|
||||
*/
|
||||
template <typename T>
|
||||
String formatPowerValue(String label, T value, String unit, int precision);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue