Skip to content

Commit

Permalink
Fixed warning during compile for community devices (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
elral authored May 27, 2024
1 parent 73a1d5f commit 8a68ad1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MF_CustomDevice/CustomDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand Down

0 comments on commit 8a68ad1

Please sign in to comment.