1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +03:00

Fix sensor status calls (#3640)

Fix Sensor Status
This commit is contained in:
Mark Haslinghuis 2023-11-24 17:51:39 +01:00 committed by GitHub
parent 3d9ae790c4
commit 11279cd05a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -1,6 +1,5 @@
import '../injected_methods';
import { update_dataflash_global } from "../update_dataflash_global";
import { sensor_status } from "../sensor_helpers";
import { bit_check, bit_set } from "../bit";
import { i18n } from "../localization";
import { gui_log } from "../gui_log";
@ -193,7 +192,6 @@ MspHelper.prototype.process_data = function(dataHandler) {
FC.CONFIG.mode = data.readU32();
FC.CONFIG.profile = data.readU8();
sensor_status(FC.CONFIG.activeSensors, FC.GPS_DATA.fix);
break;
case MSPCodes.MSP_STATUS_EX:
FC.CONFIG.cycleTime = data.readU16();
@ -223,7 +221,6 @@ MspHelper.prototype.process_data = function(dataHandler) {
FC.CONFIG.cpuTemp = data.readU16();
}
sensor_status(FC.CONFIG.activeSensors, FC.GPS_DATA.fix);
break;
case MSPCodes.MSP_RAW_IMU:

View file

@ -765,9 +765,10 @@ async function update_live_status() {
if (have_sensor(FC.CONFIG.activeSensors, 'gps')) {
await MSP.promise(MSPCodes.MSP_RAW_GPS);
sensor_status(FC.CONFIG.activeSensors, FC.GPS_DATA.fix);
}
sensor_status(FC.CONFIG.activeSensors, FC.GPS_DATA.fix);
statuswrapper.show();
}
}