sensor: fix fallthrough on sample_channel_get on AQI
fixed fallthrough on getting channel AQI value from ENS160 Signed-off-by: Krystian Dolatowski <kryqpl1@gmail.com>
This commit is contained in:
parent
c44b777221
commit
317abcc589
1 changed files with 1 additions and 0 deletions
|
@ -148,6 +148,7 @@ static int ens160_channel_get(const struct device *dev, enum sensor_channel chan
|
|||
case SENSOR_CHAN_ENS160_AQI:
|
||||
val->val1 = data->aqi;
|
||||
val->val2 = 0;
|
||||
break;
|
||||
default:
|
||||
return -ENOTSUP;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue