Skip to content

Commit 2b0862b

Browse files
soburiDhruvaG2000
authored andcommitted
zephyrCommon: Remove unused value
The `idx` that is declared in `analogReference()` is not needed. Removing it. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 4bc1867 commit 2b0862b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

cores/arduino/zephyrCommon.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ void analogReference(uint8_t mode)
303303
* the mode argument of analogReference().
304304
* Treat the value as equivalent to zephyr's adc_reference.
305305
*/
306-
size_t idx;
307306
for (size_t i=0; i<ARRAY_SIZE(channel_cfg); i++) {
308307
channel_cfg[i].reference = static_cast<adc_reference>(mode);
309308
}

0 commit comments

Comments
 (0)