From 8a68ad19a08b3a6f6b4ffb3ffed3d3780bd55810 Mon Sep 17 00:00:00 2001 From: elral <3263285+elral@users.noreply.github.com> Date: Mon, 27 May 2024 21:30:23 +0200 Subject: [PATCH] Fixed warning during compile for community devices (#322) --- src/MF_CustomDevice/CustomDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MF_CustomDevice/CustomDevice.cpp b/src/MF_CustomDevice/CustomDevice.cpp index fc80876c..5b6a9312 100644 --- a/src/MF_CustomDevice/CustomDevice.cpp +++ b/src/MF_CustomDevice/CustomDevice.cpp @@ -97,9 +97,9 @@ namespace CustomDevice { for (uint8_t i = 0; i < customDeviceRegistered; ++i) { if (state) - customDevice[i].set(MESSAGEID_POWERSAVINGMODE, "1"); + customDevice[i].set(MESSAGEID_POWERSAVINGMODE, (char*)"1"); else - customDevice[i].set(MESSAGEID_POWERSAVINGMODE, "0"); + customDevice[i].set(MESSAGEID_POWERSAVINGMODE, (char*)"0"); } }