fix losing pl2303 input at the price of losing some input bytes sometimes.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-07-19 00:12:59 +02:00
parent 9685412782
commit ac2534273b
2 changed files with 14 additions and 3 deletions

View file

@ -67,6 +67,8 @@ struct grub_serial_port
struct grub_serial_driver *driver;
struct grub_serial_config config;
int configured;
char buf[64];
int bufstart, bufend;
/* This should be void *data but since serial is useful as an early console
when malloc isn't available it's a union.
*/