Skip to content

Commit 2e307b2

Browse files
authored
Update Berry.md
Typo in fix
1 parent 2e89266 commit 2e307b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Berry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ tasmota.memory<a class="cmnd" id="tasmota_memory"></a>|`() -> map` or `(key:stri
504504
tasmota.add\_rule<a class="cmnd" id="tasmota_add_rule"></a>|`(trigger:string, f:function [, id:any]) ->nil`<br>`(triggers:list_of_string, f:function [, id:any]) ->nil`<br>Adds a rule to the rule engine. See above for rule triggers.<br>Optional `id` allows to remove selectively rules with `tasmota.remove_rule()`.<br>If you add a new rule with the same `trigger` and the same non-`nil` `id`, the previous rule is removed and the new one replaces it (this is handy when developing new code)
505505
tasmota.add\_rule\_once<a class="cmnd" id="tasmota_add_rule_once"></a>|`(trigger:string, f:function [, id:any]) ->nil`<br>`(triggers:list_of_string, f:function [, id:any]) ->nil`<br>Same as `add_rule` except the rule is fired only once and then removed from rules
506506
tasmota.remove\_rule<a class="cmnd" id="tasmota_remove_rule"></a>|`(trigger:string [, id:any]) ->nil`<br>`(triggers:list_of_string [, id:any]) ->nil`<br>Removes a rule from the rule engine. Silently ignores the trigger(s) if no rule matches. Optional `id` to remove selectively some rules.
507-
tasmota.when\_network\_up<a class="cmnd" id="tasmota_when_network_up"></a>|`(f:function) ->nil`<br>Runs the provided function or cclosure as soon as the first network stack is available (wifi or ethernet).<br>This is to be used whenever you call network function from Berry, calling most of network functions before the network is up generally causes a crash.
507+
tasmota.when\_network\_up<a class="cmnd" id="tasmota_when_network_up"></a>|`(f:function) ->nil`<br>Runs the provided function or closure as soon as the first network stack is available (wifi or ethernet).<br>This is to be used whenever you call network function from Berry, calling most of network functions before the network is up generally causes a crash.
508508
tasmota.add\_driver<a class="cmnd" id="tasmota_add_driver"></a>|`(instance) ->nil`<br>Registers an instance as a driver
509509
tasmota.remove\_driver<a class="cmnd" id="tasmota_remove_driver"></a>|`(instance) ->nil`<br>Removes a driver
510510
tasmota.gc<a class="cmnd" id="tasmota_gc"></a>|`() -> int`<br>Triggers garbage collection of Berry objects and returns the bytes currently allocated. This is for debug only and shouldn't be normally used. `gc` is otherwise automatically triggered when necessary.

0 commit comments

Comments
 (0)