Skip to content

Commit

Permalink
Fix changing blackbox rate for 4.2 and older firmware (#3816)
Browse files Browse the repository at this point in the history
change blackbox rate for 4.2 and older firmware fix
  • Loading branch information
rtlopez authored Feb 26, 2024
1 parent e3228f2 commit 34056bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/tabs/onboard_logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ onboard_logging.initialize = function (callback) {
}
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_44)) {
FC.BLACKBOX.blackboxSampleRate = parseInt(loggingRatesSelect.val(), 10);
FC.BLACKBOX.blackboxPDenom = parseInt(loggingRatesSelect.val(), 10);
}
FC.BLACKBOX.blackboxPDenom = parseInt(loggingRatesSelect.val(), 10);
FC.BLACKBOX.blackboxDevice = parseInt(deviceSelect.val(), 10);

await MSP.promise(MSPCodes.MSP_SET_BLACKBOX_CONFIG, mspHelper.crunch(MSPCodes.MSP_SET_BLACKBOX_CONFIG));
Expand Down

0 comments on commit 34056bd

Please sign in to comment.