mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-12 10:55:49 +01:00
Huami 2021: Add null terminator to firmware device name matching
This commit is contained in:
parent
a6cb73e843
commit
f38f5fbd85
@ -158,7 +158,7 @@ public abstract class Huami2021FirmwareInfo extends AbstractHuamiFirmwareInfo {
|
||||
}
|
||||
|
||||
// On the MB7, this only works for firmwares > 1.8.5.1, not for any older firmware
|
||||
if (!searchString32BitAligned(firmwareBin, deviceName())) {
|
||||
if (!searchString32BitAligned(firmwareBin, deviceName() + "\0")) {
|
||||
LOG.warn("Failed to find {} in fwBytes", deviceName());
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user