This commit is contained in:
2020-09-03 17:09:25 +02:00
parent 4a02773d6d
commit c0556dfa1c

View File

@ -211,6 +211,8 @@ void closeSerial(int fd) {
}
t_longframe *request(int fd, uint8_t cmd, uint8_t addr) {
errno = 0;
t_longframe *frame = (t_longframe*) malloc(sizeof(t_longframe));
if (! frame) {
errlog("unable to allocate memory for frame\n");