8000 Fix for issue #3383 - SAMD51 microcontroller.cpu.voltage · syntheticfuture/circuitpython@b2dea8a · GitHub
[go: up one dir, main page]

Skip to content

Commit b2dea8a

Browse files
committed
Fix for issue adafruit#3383 - SAMD51 microcontroller.cpu.voltage
1 parent d79d687 commit b2dea8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ports/atmel-samd/common-hal/microcontroller/Processor.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ float common_hal_mcu_processor_get_voltage(void) {
292292
#endif
293293

294294
#ifdef SAM_D5X_E5X
295+
hri_supc_clear_VREF_ONDEMAND_bit(SUPC);
295296
hri_supc_set_VREF_SEL_bf(SUPC, SUPC_VREF_SEL_1V0_Val);
296297
hri_supc_set_VREF_VREFOE_bit(SUPC);
297298

0 commit comments

Comments
 (0)
0