From 84da5681702b974b7c2650b0d93c9d0997b490a0 Mon Sep 17 00:00:00 2001 From: "Zachary J. Fields" Date: Thu, 17 Apr 2025 10:18:47 -0500 Subject: [PATCH] fix: Notecard_ConnectionHandler Power Profile There is a bug in code that specifically targets the Wireless for Arduino Opta expansion. The battery backup on the device is a Lithium Ion Capacitor (LIC), but the Lithium Polymer (LiPo) profile was provided. The Notecard will work correctly in this state, but it the LIC is designed to support lower voltages than a LiPo. The improvement provided here will allow the Notecard to remain powered for a longer duration. --- src/NotecardConnectionHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NotecardConnectionHandler.cpp b/src/NotecardConnectionHandler.cpp index 9917fce..466c74d 100644 --- a/src/NotecardConnectionHandler.cpp +++ b/src/NotecardConnectionHandler.cpp @@ -396,7 +396,7 @@ NetworkConnectionState NotecardConnectionHandler::update_handleInit() // for the Opta Wirelss Extension. if (NetworkConnectionState::INIT == result) { if (J *req = _notecard.newRequest("card.voltage")) { - JAddStringToObject(req, "mode", "lipo"); + JAddStringToObject(req, "mode", "lic"); JAddBoolToObject(req, "alert", true); JAddBoolToObject(req, "sync", true); JAddBoolToObject(req, "usb", true);