updated firmware file with error codes (untested)