Skip to content
Commit e575eea2 authored by Jeppe Odgaard's avatar Jeppe Odgaard Committed by Henrik Brix Andersen
Browse files

drivers: sensor: explorir_m: improve transceive



During calibration feature development the following loop was used for
testing:

```shell
CMD="sensor attr_set explorir_m co2 calibration 1234"
while : ; do echo "$CMD" > /dev/ttyACM0; sleep .8; done
```

At some point calibration would fail and all following calibration commands
would fail.

Reset buffer and semaphore just before terminating the command to better
mitigate disturbance from previous failed command.

Signed-off-by: default avatarJeppe Odgaard <jeppe.odgaard@prevas.dk>
parent f624486f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment