Fixed IAR serial fgets fgetc