Implement error checking/clearing for RealView_getc