From 46110d56cb2fa8d9542bb813aeb00cba2020648f Mon Sep 17 00:00:00 2001 From: felixs-alt <114471609+felixs-alt@users.noreply.github.com> Date: Tue, 26 Sep 2023 12:42:08 +0200 Subject: [PATCH] Update flipflop.js --- mods/flipflop.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/flipflop.js b/mods/flipflop.js index 18460574..ece81fb6 100644 --- a/mods/flipflop.js +++ b/mods/flipflop.js @@ -16,11 +16,11 @@ elements.flipflop = { console.log(typeof Output) if (typeof Output !== "undefined" && typeof Input !== "undefined"){ Output.charge = 0 - if (Powerstate == "true" && Input.charge > 0.9) { + if (Powerstate == "true" && Input.charge > 0.2) { Powerstate == "false" pixel.color = "#CF300D" Output.charge = 0 - } else if (Powerstate == false && Input.charge < 0.9) { + } else if (Powerstate == false && Input.charge > 0.2) { Powerstate == true pixel.color = "#94CF0D" Output.charge = 5