From eac9848552fedcbceaa4ef0a8af51b9c43338bb1 Mon Sep 17 00:00:00 2001 From: Miguel Angel Mulero Martinez Date: Tue, 5 Mar 2019 12:30:42 +0100 Subject: [PATCH] Fix 32khz MSP command --- src/js/msp/MSPHelper.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/msp/MSPHelper.js b/src/js/msp/MSPHelper.js index 94550529..1e6b70b6 100644 --- a/src/js/msp/MSPHelper.js +++ b/src/js/msp/MSPHelper.js @@ -966,7 +966,9 @@ MspHelper.prototype.process_data = function(dataHandler) { FILTER_CONFIG.gyro_lowpass2_type = data.readU8(); FILTER_CONFIG.dterm_lowpass2_hz = data.readU16(); if (semver.lt(CONFIG.apiVersion, "1.41.0")) { - FILTER_CONFIG.gyro_32khz_hardware_lpf = data.readU8(); + FILTER_CONFIG.gyro_32khz_hardware_lpf = gyro_32khz_hardware_lpf; + } else { + FILTER_CONFIG.gyro_32khz_hardware_lpf = 0; } } }