Skip to content

Commit 962584f

Browse files
committed
change getVCCV math
1 parent 91441de commit 962584f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/sdk/core-implement/CommonAnalog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ float getTempDegF( void ) {
8080
}
8181

8282
float getVCCV( void ){
83-
return ((float)analogReadVCCDiv3() * 6.0) / 16384.0;
83+
return ((float)analogReadVCCDiv3() * 2.0) / 16384.0;
8484
}
8585

8686
int indexAnalogRead(pin_size_t index){

0 commit comments

Comments
 (0)