mirror of
https://github.com/eddyem/tty_term.git
synced 2025-12-06 02:25:11 +03:00
make tty buffer less (to avoid long waiting on a lot data sequence)
This commit is contained in:
parent
45bef4887c
commit
d975dffa53
@ -335,8 +335,8 @@ static TTY_descr2* opentty(){
|
||||
tcflag_t flags;
|
||||
descr->format = parse_format(device->port, &flags);
|
||||
if(!descr->format) goto someerr;
|
||||
descr->buf = MALLOC(uint8_t, BUFSIZ);
|
||||
descr->bufsz = BUFSIZ-1;
|
||||
descr->buf = MALLOC(uint8_t, 512);
|
||||
descr->bufsz = 511;
|
||||
if((descr->comfd = open(descr->portname, O_RDWR|O_NOCTTY)) < 0){
|
||||
WARN(_("Can't use port %s"), descr->portname);
|
||||
goto someerr;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user