mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
Berry add tasmota.locale()
(#17843)
This commit is contained in:
parent
bd07b05d40
commit
5ea9a95660
@ -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)
|
||||
|
||||
|
@ -158,7 +158,15 @@ extern "C" {
|
||||
be_raise(vm, kTypeError, nullptr);
|
||||
}
|
||||
|
||||
// Berry: tasmota.time_reached(timer:int) -> bool
|
||||
// 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.rtc() -> map
|
||||
//
|
||||
int32_t l_rtc(struct bvm *vm);
|
||||
int32_t l_rtc(struct bvm *vm) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user