diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-07-21 13:52:03 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-07-21 13:52:03 -0400 |
commit | f3267e6030822abc594aadd4264508607dc5bb69 (patch) | |
tree | d98e4c907265c9323762e4895ea0b75fad3ddade /app/drivers/zephyr | |
parent | b48011ace61e28362b322aecd48dadd09775f8d3 (diff) |
Tweaks for orientation and A/B pins for Kyria left
Diffstat (limited to 'app/drivers/zephyr')
-rw-r--r-- | app/drivers/zephyr/ec11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/drivers/zephyr/ec11.c b/app/drivers/zephyr/ec11.c index 357c572..1bc5d6a 100644 --- a/app/drivers/zephyr/ec11.c +++ b/app/drivers/zephyr/ec11.c @@ -41,10 +41,10 @@ static int ec11_sample_fetch(struct device *dev, enum sensor_channel chan) switch(val | (drv_data->ab_state << 2)) { case 0b0010: case 0b0100: case 0b1101: case 0b1011: - delta = 1; + delta = -1; break; case 0b0001: case 0b0111: case 0b1110: case 0b1000: - delta = -1; + delta = 1; break; default: delta = 0; |