diff --git a/wled00/ota_update.cpp b/wled00/ota_update.cpp index 904a242b..25fac1de 100644 --- a/wled00/ota_update.cpp +++ b/wled00/ota_update.cpp @@ -453,9 +453,9 @@ String getBootloaderSHA256Hex() { String result; result.reserve(65); for (int i = 0; i < 32; i++) { - unsigned char b1 = bootloaderSHA256Cache[i]; - unsigned char b2 = b1 >> 4; // bugfix: right-shift on signed char is undefined behaviour - b1 &= 0x0F; + char b1 = bootloaderSHA256Cache[i]; + char b2 = b1 >> 4; + b1 &= 0x0F; b2 &= 0x0F; // drop unneeded bits, including possible junk from arithmetic right shift b1 += '0'; b2 += '0'; if (b1 > '9') b1 += 39; if (b2 > '9') b2 += 39;