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 dc510ae commit aa46959Copy full SHA for aa46959
src/Arduino_POSIXStorage.cpp
@@ -164,8 +164,12 @@ enum BoardTypes detectPortentaH7TypeOnce()
164
// Inject low level into input, wait 1 ms to settle
165
vbusPin.mode(PullDown);
166
delay(1);
167
- // Shortly float the input and read the state
+ // Shortly float the input
168
vbusPin.mode(PullNone);
169
+ // Give the external pull-up resistor on the Portenta Machine control enough time to
170
+ // raise the voltage to an acceptable high
171
+ delayMicroseconds(50);
172
+ // Read the state
173
inAfterDown = vbusPin.read();
174
// End floating state and leave the input in pull-up state
175
vbusPin.mode(PullUp);
0 commit comments