mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[hal] Add temp value for HAL_GetUserVoltage3V3 (#8001)
Lots of higher level code in allwpilib depends on this, so we should return at least a valid and sane value, rather then erroring.
This commit is contained in:
@@ -55,8 +55,9 @@ double HAL_GetVinVoltage(int32_t* status) {
|
||||
|
||||
double HAL_GetUserVoltage3V3(int32_t* status) {
|
||||
initializePower(status);
|
||||
*status = HAL_HANDLE_ERROR;
|
||||
return 0;
|
||||
// Until we have a value, make this work, as lots of other
|
||||
// code depends on it.
|
||||
return 3.3;
|
||||
}
|
||||
|
||||
double HAL_GetUserCurrent3V3(int32_t* status) {
|
||||
|
||||
Reference in New Issue
Block a user