Skip to content

Commit

Permalink
Update sensors.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 authored Jul 22, 2024
1 parent e4b23d9 commit ec9947e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Backend/sensors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,9 @@ class RandomTriggerDefinition extends TriggerDefinition {

@override
Future<void> onEnable() async {
randomTimer = Timer(Duration(seconds: Random().nextInt(240)), () {
randomTimer = Timer(Duration(seconds: Random().nextInt(120)), () {
sendCommands("Action", ref);
onEnable();
});
}
}
Expand Down

0 comments on commit ec9947e

Please sign in to comment.