Add berry divider

This commit is contained in:
Theo Arends 2024-02-05 15:59:37 +01:00
parent 6cfe979f1b
commit f88a8a6765
3 changed files with 4 additions and 3 deletions

View File

@ -165,7 +165,7 @@ class AXP192 : I2C_Driver
"{s}Batt Voltage{m}%.3f V{e}"..
"{s}Batt Current{m}%.1f mA{e}"..
#"{s}Batt Power{m}%.3f{e}"..
"{s}Temp AXP{m}%.1f °C{e}",
"{s}AXP Temperature{m}%.1f °C{e}",
self.get_vbus_voltage(), self.get_vbus_voltage(),
self.get_bat_voltage(), self.get_bat_current(),
#self.get_bat_power(),

View File

@ -61,7 +61,7 @@ class Audio_SLM
self.audio_input.get_gain(),
self.rms,
self.peak / 32767)
tasmota.web_send(msg)
tasmota.web_send_decimal(msg)
self.peak = 0
self.rms = 0
end

View File

@ -790,7 +790,7 @@ extern "C" {
*/
// web append with decimal conversion
// web append without decimal conversion
int32_t l_webSend(bvm *vm);
int32_t l_webSend(bvm *vm) {
int32_t top = be_top(vm); // Get the number of arguments
@ -814,6 +814,7 @@ extern "C" {
be_pop(vm, top); // avoid Error be_top is non zero message
#ifdef USE_WEBSERVER
WSContentSend_PD(PSTR("%s"), msg);
WSContentSeparator(0);
#endif // USE_WEBSERVER
be_return_nil(vm); // Return nil when something goes wrong
}