Commit ef2ec643 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Return reader error from labcomm_decode_one if decoding fails.

parent 86517ff7
......@@ -330,6 +330,9 @@ int labcomm_decoder_decode_one(struct labcomm_decoder *d)
labcomm_scheduler_data_unlock(d->scheduler);
if (do_decode) {
do_decode(d->reader, call_handler, &wrap);
if (d->reader->error < 0) {
result = d->reader->error;
}
} else {
result = -ENOENT;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment