Loader/ips: Fix more bugs, now works with simple test on hw.

This commit is contained in:
Michael Scire 2018-07-28 21:06:50 -07:00
parent 08275240c6
commit 674a91db8c

View File

@ -19,9 +19,9 @@ static inline u8 HexNybbleToU8(const char nybble) {
if ('0' <= nybble && nybble <= '9') { if ('0' <= nybble && nybble <= '9') {
return nybble - '0'; return nybble - '0';
} else if ('a' <= nybble && nybble <= 'f') { } else if ('a' <= nybble && nybble <= 'f') {
return nybble - 'a'; return nybble - 'a' + 0xa;
} else { } else {
return nybble - 'A'; return nybble - 'A' + 0xA;
} }
} }