1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/native/periph/qdec: remove useless loop

Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
This commit is contained in:
Gilles DOFFE 2024-01-24 13:13:31 +01:00
parent 6a59642a1e
commit 3bfabb4a6c

View File

@ -71,9 +71,7 @@ int32_t qdec_init(qdec_t qdec, qdec_mode_t mode, qdec_cb_t cb, void *arg)
}
/* Initialize qdec channels */
for (uint8_t i = 0; i < QDEC_NUMOF; i++) {
qdecs[qdec] = 0;
}
qdecs[qdec] = 0;
/* Reset counter and start qdec */
qdec_start(qdec);