We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a7d8d4 commit 36f907eCopy full SHA for 36f907e
drivers/sensor/qdec_nrfx/qdec_nrfx.c
@@ -88,7 +88,7 @@ static int qdec_nrfx_channel_get(const struct device *dev,
88
irq_unlock(key);
89
90
BUILD_ASSERT(steps > 0, "only positive number valid");
91
- BUILD_ASSERT(steps <= 2148, "overflow possible");
+ BUILD_ASSERT(steps <= 2048, "overflow possible");
92
93
val->val1 = (acc * FULL_ANGLE) / steps;
94
val->val2 = (acc * FULL_ANGLE) - (val->val1 * steps);
0 commit comments