On Mon, Oct 5, 2020 at 3:01 PM <poesc...@lemonage.de> wrote: > > + while (*esc && cgoffset < 8) { > + shift ^= 4; > + if (*esc >= '0' && *esc <= '9') { > + value |= (*esc - '0') << shift; > + } else if (*esc >= 'A' && *esc <= 'F') { > + value |= (*esc - 'A' + 10) << shift; > + } else if (*esc >= 'a' && *esc <= 'f') { > + value |= (*esc - 'a' + 10) << shift;
I just noticed this is undoing commit 3f03b6498 ("auxdisplay: charlcd: Reuse hex_to_bin() instead of custom code"). Lars? Cheers, Miguel