diff --git a/lib/libesp32/berry_tasmota/src/be_tasmota_lib.c b/lib/libesp32/berry_tasmota/src/be_tasmota_lib.c index b3d7c540d..0f27586ab 100644 --- a/lib/libesp32/berry_tasmota/src/be_tasmota_lib.c +++ b/lib/libesp32/berry_tasmota/src/be_tasmota_lib.c @@ -35,6 +35,7 @@ extern int l_scaleuint(bvm *vm); extern int l_logInfo(bvm *vm); extern int l_save(bvm *vm); extern int t_random_byte(bvm *vm); +extern int l_locale(bvm *vm); extern int l_read_sensors(bvm *vm); @@ -109,6 +110,7 @@ class be_class_tasmota (scope: global, name: Tasmota) { scale_uint, func(l_scaleuint) log, func(l_logInfo) save, func(l_save) + locale, func(l_locale) read_sensors, func(l_read_sensors) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_tasmota.ino b/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_tasmota.ino index 4ac0451d3..5bb9488bc 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_tasmota.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_tasmota.ino @@ -157,8 +157,16 @@ extern "C" { } be_raise(vm, kTypeError, nullptr); } + + // Berry: tasmota.locale() -> string + // + int32_t l_locale(struct bvm *vm); + int32_t l_locale(struct bvm *vm) { + be_pushstring(vm, D_HTML_LANGUAGE); + be_return(vm); + } - // Berry: tasmota.time_reached(timer:int) -> bool + // Berry: tasmota.rtc() -> map // int32_t l_rtc(struct bvm *vm); int32_t l_rtc(struct bvm *vm) {