Add readme, make some fixes

This commit is contained in:
2026-05-07 10:56:21 +03:00
parent 63f87d2283
commit 46de782019
8 changed files with 338 additions and 36 deletions

View File

@@ -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;
}
/**