Added compatibility for bootloader revision 4

Tested, should not break anything.