Some firmware programming improvements in the error handling.