From c217c0eaa7a3676f70efb045f10c5c753331bf39 Mon Sep 17 00:00:00 2001 From: Muhammad Izza Alfiansyah Date: Tue, 9 Jul 2024 16:30:16 +0700 Subject: [PATCH] bug when finished --- microcontroller/sketch_apr22a/sketch_apr22a.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/microcontroller/sketch_apr22a/sketch_apr22a.ino b/microcontroller/sketch_apr22a/sketch_apr22a.ino index f4be02f..72972fb 100644 --- a/microcontroller/sketch_apr22a/sketch_apr22a.ino +++ b/microcontroller/sketch_apr22a/sketch_apr22a.ino @@ -671,11 +671,12 @@ void insertHistory(bool berhasil = true) { String json = JSON.stringify(req); JSONVar reqSet; - reqSet["buzzer_on"] = false; + reqSet["buzzer_on"] = true; String jsonReqSet = JSON.stringify(reqSet); - db.from("pengaturan").eq("id", "1").doUpdate(jsonReqSet); + db.insert("histori_fermentasi", json, false); + db.from("pengaturan").eq("id", "1").doUpdate(jsonSett); callUser(berhasil); pengujian = true;