Issue storing QR in EEPROM and transmitting over RS485

It seems that the if and else branches has swapped here: