Code to display sensor input of Axis y, If the user presses 'e' then exit the loop. Not working and can not figuer out why

Dependencies:   mbed

History

Trying to find out how to skip getchar() when no input is entered default tip

2013-04-05, by Nightxp [Fri, 05 Apr 2013 19:32:54 +0000] rev 0

Trying to find out how to skip getchar() when no input is entered