Update flipflop.js

This commit is contained in:
felixs-alt 2023-09-26 14:42:03 +02:00 committed by GitHub
parent 024ababf3c
commit 3c3b20d33d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -22,13 +22,13 @@ elements.flipflop = {
Output.charge = 0
if (pixel.powerstate == "true" && Input.charge > 0.2 && pixel.cooldown < 1) {
Input.charge = 0
pixel.cooldown = 7
pixel.cooldown = 5
pixel.powerstate = "false"
pixel.color = "#CF300D"
Output.charge = 0
} else if (pixel.powerstate == "false" && Input.charge > 0.2 && pixel.cooldown < 1) {
Input.chare = 0
pixel.cooldown = 7
pixel.cooldown = 5
pixel.powerstate = "true"
pixel.color = "#94CF0D"
Output.charge = 5