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;