Skip to content

Commit 959bcd0

Browse files
committed
Initialize BOARD_VIN_MEASURE on NanoXRP
The NanoXRP uses BOARD_VIN_MEASURE for the BLE CS pin. It must be set back to output mode if used for ADC readings. Adds a check for "NanoXRP" in sys.implementation._machine and sets Pin("BOARD_VIN_MEASURE", Pin.OUT) to ensure the pin is configured correctly on that hardware.
1 parent e5e57d5 commit 959bcd0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

XRPLib/resetbot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,5 @@ def reset_hard():
7979
if "XRPLib.webserver" in sys.modules:
8080
reset_webserver()
8181

82+
if "NanoXRP" in sys.implementation._machine:
83+
Pin("BOARD_VIN_MEASURE", Pin.OUT)

0 commit comments

Comments
 (0)