mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-23 16:25:19 +03:00
Fix negative current sensor offset voltage values handling
This commit is contained in:
parent
57b4afe8f7
commit
a7afedea92
2 changed files with 2 additions and 2 deletions
|
@ -611,7 +611,7 @@ var mspHelper = (function (gui) {
|
|||
BF_CONFIG.board_align_pitch = data.getInt16(8, true); // -180 - 360
|
||||
BF_CONFIG.board_align_yaw = data.getInt16(10, true); // -180 - 360
|
||||
BF_CONFIG.currentscale = data.getInt16(12, true);
|
||||
BF_CONFIG.currentoffset = data.getUint16(14, true);
|
||||
BF_CONFIG.currentoffset = data.getInt16(14, true);
|
||||
break;
|
||||
case MSPCodes.MSP_SET_BF_CONFIG:
|
||||
console.log('BF_CONFIG saved');
|
||||
|
|
|
@ -418,7 +418,7 @@
|
|||
</label>
|
||||
</div>
|
||||
<div class="number">
|
||||
<input type="number" id="currentoffset" name="currentoffset" step="1" min="0" max="3300" />
|
||||
<input type="number" id="currentoffset" name="currentoffset" step="1" min="-3300" max="3300" />
|
||||
<label for="currentoffset">
|
||||
<span data-i18n="configurationCurrentOffset"></span>
|
||||
</label>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue