Skip to content

Commit 5133443

Browse files
committed
fixes for sonar cloud, thanks Mark and Miguel
1 parent 8fd2fd7 commit 5133443

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

js/flightlog_fielddefs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ var
342342
"DEBUG_RX_STATE_TIME",
343343
"GPS_RESCUE_VELOCITY",
344344
"GPS_RESCUE_HEADING",
345-
"GPS_RESCUE_TRACKING"
345+
"GPS_RESCUE_TRACKING",
346346
]),
347347

348348
SUPER_EXPO_YAW = makeReadOnly([

js/flightlog_fields_presenter.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,9 +1089,9 @@ function FlightLogFieldPresenter() {
10891089
}
10901090
case 'GPS_RESCUE_THROTTLE_PID':
10911091
switch (fieldName) {
1092-
case 'debug[0]': // Throttle P added uS
1093-
case 'debug[1]': // Throttle D added * uS
1094-
return value.toFixed(0) + 'uS';
1092+
case 'debug[0]': // Throttle P added us
1093+
case 'debug[1]': // Throttle D added * us
1094+
return value.toFixed(0) + 'us';
10951095
case 'debug[2]': // current altitude in m
10961096
case 'debug[3]': // TARGET altitude in m
10971097
return (value / 100).toFixed(1) + 'm';
@@ -1119,12 +1119,12 @@ function FlightLogFieldPresenter() {
11191119
}
11201120
case 'GHST':
11211121
switch (fieldName) {
1122-
// debug 0 is CRC error count 0 to int16_t
1123-
// debug 1 is unknown frame count 0 to int16_t
1124-
// debug 2 is RSSI 0 to -128 -> 0 to 128
11251122
case 'debug[3]': // LQ 0-100
11261123
return value.toFixed(0) + '%';
11271124
default:
1125+
// debug 0 is CRC error count 0 to int16_t
1126+
// debug 1 is unknown frame count 0 to int16_t
1127+
// debug 2 is RSSI 0 to -128 -> 0 to 128
11281128
return value.toFixed(0);
11291129
}
11301130
case 'SCHEDULER_DETERMINISM':
@@ -1133,8 +1133,8 @@ function FlightLogFieldPresenter() {
11331133
case 'debug[2]': // task delay time in us*10
11341134
case 'debug[3]': // task delay time in us*10
11351135
return (value / 10).toFixed(1) + 'us';
1136-
// debug 1 is task ID of late task
11371136
default:
1137+
// debug 1 is task ID of late task
11381138
return value.toFixed(0);
11391139
}
11401140
case 'TIMING_ACCURACY':
@@ -1150,20 +1150,20 @@ function FlightLogFieldPresenter() {
11501150
switch (fieldName) {
11511151
case 'debug[3]': // uplink LQ %
11521152
return value.toFixed(1) + '%';
1153-
// debug 0 = Lost connection count
1154-
// debug 1 = RSSI
1155-
// debug 2 = SNR
11561153
default:
1154+
// debug 0 = Lost connection count
1155+
// debug 1 = RSSI
1156+
// debug 2 = SNR
11571157
return value.toFixed(0);
11581158
}
11591159
case 'RX_EXPRESSLRS_PHASELOCK':
11601160
switch (fieldName) {
11611161
case 'debug[2]': // Frequency offset in ticks
11621162
return value.toFixed(0) + 'ticks';
1163-
// debug 0 = Phase offset us
1164-
// debug 1 = Filtered phase offset us
1165-
// debug 3 = Pphase shift in us
11661163
default:
1164+
// debug 0 = Phase offset us
1165+
// debug 1 = Filtered phase offset us
1166+
// debug 3 = Pphase shift in us
11671167
return value.toFixed(0) + 'us';
11681168
}
11691169
case 'GPS_RESCUE_VELOCITY':
@@ -1177,7 +1177,7 @@ function FlightLogFieldPresenter() {
11771177
}
11781178
case 'GPS_RESCUE_HEADING':
11791179
switch (fieldName) {
1180-
case 'debug[0]': // Rescue yaw rate deg/s * 10 up to +/- 90
1180+
case 'debug[0]': // Rescue yaw rate deg/s * 10 up to +/- 90
11811181
return (value / 10).toFixed(1) + 'deg/s';
11821182
case 'debug[1]': // Rescue roll deg * 100 up to +/- 20 deg
11831183
return (value / 100).toFixed(1) + 'deg';

0 commit comments

Comments
 (0)