Update flipflop.js

This commit is contained in:
felixs-alt 2023-09-27 08:12:48 +02:00 committed by GitHub
parent 82c897e70e
commit f42131ad3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -17,8 +17,6 @@ elements.flipflop = {
if (typeof Output !== "undefined" && typeof Input !== "undefined"){
if (pixel.cooldown > 0){
pixel.cooldown--
}
Output.charge = 0
if (pixel.powerstate == "true" && Input.charge > 0.2 && pixel.cooldown < 1) {
Input.charge = 0
pixel.cooldown = 5