]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Add units (W / dB) to exciter power and ALC
authorc vw <dl1ycf@darc.de>
Tue, 1 Jun 2021 15:05:02 +0000 (17:05 +0200)
committerc vw <dl1ycf@darc.de>
Tue, 1 Jun 2021 15:05:02 +0000 (17:05 +0200)
tx_panadapter.c

index ac0e11441e7f56837b9ba2f6793048f79324dfdb..8c272c69cbb401a09c9476a7dc78349812932e3b 100644 (file)
@@ -406,7 +406,7 @@ void tx_panadapter_update(TRANSMITTER *tx) {
     cairo_set_font_size(cr, DISPLAY_FONT_SIZE3);
 
     if(transmitter->fwd<0.0001) {
-      sprintf(text,"FWD %0.3f",transmitter->exciter);
+      sprintf(text,"FWD %0.3f W",transmitter->exciter);
     } else {
       static int max_count=0;
       static double max_level=0.0;
@@ -427,7 +427,7 @@ void tx_panadapter_update(TRANSMITTER *tx) {
     cairo_move_to(cr,10,30);
     cairo_show_text(cr, text);
 
-    sprintf(text,"ALC %2.1f",transmitter->alc);
+    sprintf(text,"ALC %2.1f dB",transmitter->alc);
     cairo_move_to(cr,10,45);
     cairo_show_text(cr, text);
 
@@ -475,7 +475,6 @@ void tx_panadapter_update(TRANSMITTER *tx) {
     cairo_move_to(cr, 160.0, 30.0);
     cairo_show_text(cr, text);
 
-
     if (tx_fifo_overrun || tx_fifo_underrun) {
       cairo_set_source_rgb(cr,1.0,0.0,0.0);
       if (tx_fifo_underrun) {