Merge pull request #8714 from gemu2015/scripter_timer-fix

scripter timer fix
This commit is contained in:
Theo Arends 2020-06-17 16:49:27 +02:00 committed by GitHub
commit 9a8722fa70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ void ScriptEverySecond(void) {
if (bitRead(Settings.rule_enabled, 0)) {
struct T_INDEX *vtp=glob_script_mem.type;
float delta=(millis()-script_lastmillis)/1000;
float delta=(millis()-script_lastmillis)/1000.0;
script_lastmillis=millis();
for (uint8_t count=0; count<glob_script_mem.numvars; count++) {
if (vtp[count].bits.is_timer) {