Fixed Console Demo bug

Infinite loop if you sent more than 20 bytes.  Fixed.