File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ void startPanels(){
10
10
void panLogo (){
11
11
osd.setPanel (5 , 5 );
12
12
osd.openPanel ();
13
- osd.printf_P (PSTR (" MinimOSD-Extra 2.4|Plane r780 " ));
13
+ osd.printf_P (PSTR (" MinimOSD-Extra 2.4|Plane r795 " ));
14
14
osd.closePanel ();
15
15
}
16
16
@@ -280,16 +280,16 @@ void panRSSI(int first_col, int first_line){
280
280
osd.setPanel (first_col, first_line);
281
281
osd.openPanel ();
282
282
283
- if (rssiraw_on == 0 ) rssi = (int16_t )((float )((int16_t )osd_rssi - rssipersent)/(float )(rssical-rssipersent)*100 .0f );
283
+ if ((rssiraw_on % 2 == 0 ))
284
+ {
285
+ if (osd_rssi < rssipersent) osd_rssi = rssipersent;
286
+ if (osd_rssi > rssical) osd_rssi = rssical;
287
+ if (rssiraw_on == 0 ) rssi = (int16_t )((float )((int16_t )osd_rssi - rssipersent)/(float )(rssical-rssipersent)*100 .0f );
288
+ if (rssiraw_on == 8 ) rssi = (int16_t )((float )(chan8_raw / 10 - rssipersent)/(float )(rssical-rssipersent)*100 .0f );
289
+ }
284
290
if (rssiraw_on == 1 ) rssi = (int16_t )osd_rssi;
285
-
286
- if (rssiraw_on == 8 ) rssi = (int16_t )((float )(chan8_raw / 10 - rssipersent)/(float )(rssical-rssipersent)*100 .0f );
287
291
if (rssiraw_on == 9 ) rssi = chan8_raw;
288
-
289
-
290
- // if (rssi < -99) rssi = -99;
291
292
osd.printf (" %c%3i%c" , 0x09 , rssi, 0x25 );
292
- // osd.printf("%c%3i%c", 0x09, osd_clear, 0x25);
293
293
osd.closePanel ();
294
294
}
295
295
You can’t perform that action at this time.
0 commit comments