Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
changed delay from ms to s
Browse files Browse the repository at this point in the history
  • Loading branch information
Advay17 committed Jul 27, 2024
1 parent cb80542 commit 93752e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/xrp_blocks_python.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ Blockly.Python['run_function_periodically'] = function(block) {
const value_after = Blockly.Python.valueToCode(block, 'AFTER', Blockly.Python.ORDER_ATOMIC);
const statement_do = Blockly.Python.statementToCode(block, 'DO');
var funcName = getFuncName();
var code = `\ndef ${funcName}():\n${statement_do}\ntimers.append(Timer(-1)); timers[-1].init(period=${value_after}, mode=Timer.PERIODIC, callback=${funcName})`
var code = `\ndef ${funcName}():\n${statement_do}\ntimers.append(Timer(-1)); timers[-1].init(period=${value_after*1000}, mode=Timer.PERIODIC, callback=${funcName})`

return code;
}
Expand Down

0 comments on commit 93752e7

Please sign in to comment.