mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Merge pull request #762 from bhuism/master
fix voltage calculation for smartport telemetry
This commit is contained in:
commit
21191c0e14
1 changed files with 1 additions and 2 deletions
|
@ -322,8 +322,7 @@ void handleSmartPortTelemetry(void)
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case FSSP_DATAID_VFAS :
|
case FSSP_DATAID_VFAS :
|
||||||
smartPortSendPackage(id, vbat * 83); // supposedly given in 0.1V, unknown requested unit
|
smartPortSendPackage(id, vbat * 10); // given in 0.1V, convert to volts
|
||||||
// multiplying by 83 seems to make Taranis read correctly
|
|
||||||
smartPortHasRequest = 0;
|
smartPortHasRequest = 0;
|
||||||
break;
|
break;
|
||||||
case FSSP_DATAID_CURRENT :
|
case FSSP_DATAID_CURRENT :
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue