mirror of
https://github.com/eddyem/small_tel.git
synced 2026-05-08 22:06:56 +03:00
Add readme, make some fixes
This commit is contained in:
@@ -56,7 +56,12 @@ static int openserial(const char *path){
|
||||
}
|
||||
DBG("Opened %s @ %d", str, speed);
|
||||
FREE(str);
|
||||
return serial->comfd;
|
||||
int comfd = serial->comfd;
|
||||
FREE(serial->portname);
|
||||
FREE(serial->buf);
|
||||
FREE(serial->format);
|
||||
FREE(serial);
|
||||
return comfd;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user