Skip to content

Commit cdbbea5

Browse files
committed
Resolved SonarCloud notices
1 parent 6effa8d commit cdbbea5

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/flightlog_fielddefs.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,9 +559,7 @@ export function adjustFieldDefsList(firmwareType, firmwareVersion) {
559559
DEBUG_MODE.push('GIMBAL');
560560
DEBUG_MODE.push('WING_SETPOINT');
561561
DEBUG_MODE.push('AUTOPILOT_POSITION');
562-
DEBUG_MODE.push('CHIRP');
563-
DEBUG_MODE.push('FLASH_TEST_PRBS');
564-
DEBUG_MODE.push('MAVLINK_TELEMETRY');
562+
DEBUG_MODE.push('CHIRP', 'FLASH_TEST_PRBS', 'MAVLINK_TELEMETRY');
565563
}
566564
if (semver.gte(firmwareVersion, "2025.12.0")) {
567565
//rename DUAL_GYRO_ to MULTI_GYRO

src/graph_config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,7 @@ GraphConfig.getDefaultCurveForField = function (flightLog, fieldName) {
14581458
switch (fieldName) {
14591459
case "debug[0]":
14601460
return {
1461-
power: 1.0,
1461+
power: 1,
14621462
MinMax: {
14631463
min: 0,
14641464
max: 1,
@@ -1467,15 +1467,15 @@ GraphConfig.getDefaultCurveForField = function (flightLog, fieldName) {
14671467
case "debug[1]":
14681468
case "debug[2]":
14691469
return {
1470-
power: 1.0,
1470+
power: 1,
14711471
MinMax: {
14721472
min: 0,
14731473
max: 100,
14741474
},
14751475
};
14761476
case "debug[3]":
14771477
return {
1478-
power: 1.0,
1478+
power: 1,
14791479
MinMax: {
14801480
min: 0,
14811481
max: 50,

0 commit comments

Comments
 (0)