]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
cosmetic changes
authorc vw <dl1ycf@darc.de>
Thu, 25 Jul 2019 09:25:00 +0000 (11:25 +0200)
committerc vw <dl1ycf@darc.de>
Thu, 25 Jul 2019 09:25:00 +0000 (11:25 +0200)
ext.h
midi2.c
ps_menu.c
ps_menu.h

diff --git a/ext.h b/ext.h
index 5ed6b0626429bff51077760faec2015e7ba87816..98ae3520694e76e6e30ceaf045fbd7a1ee831ec0 100644 (file)
--- a/ext.h
+++ b/ext.h
@@ -52,7 +52,6 @@ extern int ext_noise_update(void *data);
 
 #ifdef PURESIGNAL
 extern int ext_tx_set_ps(void *data);
-extern int ext_ps_twotone(void *data);
 #endif
 
 int ext_vfo_step(void *data);
diff --git a/midi2.c b/midi2.c
index 9145137817638733b4002a37ac80f3706252ad3a..b23e2c56f640e9b75497671f9e67f5fde70aceac 100644 (file)
--- a/midi2.c
+++ b/midi2.c
@@ -149,7 +149,7 @@ static enum MIDIaction keyword2action(char *s) {
  */
 
 void MIDIstartup() {
-    FILE *fpin,*fpout;
+    FILE *fpin;
     char zeile[255];
     char *cp,*cq;
     int key;
@@ -167,7 +167,6 @@ void MIDIstartup() {
     MidiCommandsTable.pitch=NULL;
 
     fpin=fopen("midi.inp", "r");
-    fpout=stderr;
     if (!fpin) return;
 
     for (;;) {
@@ -239,8 +238,7 @@ void MIDIstartup() {
       }
       if (event == EVENT_NONE || type == TYPE_NONE || key < 0 || key > 127) continue;
       // Now all entries of the line have been read. Construct descriptor
-      fprintf(fpout,"K=%d C=%d T=%d E=%d A=%d OnOff=%d THRs=%d %d %d %d %d %d\n",
-        key,chan,type, event, action, onoff, lt3,lt2,lt1,ut1,ut2,ut3);
+//fprintf(stderr,"K=%d C=%d T=%d E=%d A=%d OnOff=%d THRs=%d %d %d %d %d %d\n", key,chan,type, event, action, onoff, lt3,lt2,lt1,ut1,ut2,ut3);
       desc = (struct desc *) malloc(sizeof(struct desc));
       desc->next = NULL;
       desc->action = action;
index 7d554dc768bf43483045401d3f32896641cf8833..cbddbc6373026546d820dd78c4fee74876711c8f 100644 (file)
--- a/ps_menu.c
+++ b/ps_menu.c
@@ -64,7 +64,7 @@ extern void SetPSMapMode (int channel, int map);
 extern void SetPSPinMode (int channel, int pin);
 
 //
-// Todo: create buttons to change these value
+// Todo: create buttons to change these values
 //
 
 
index e35d831555db401ff1d3a95eafe092c86e55c26a..d5576f28337d74c4e2936a735072ea18e0504e59 100644 (file)
--- a/ps_menu.h
+++ b/ps_menu.h
@@ -16,5 +16,3 @@
 */
 
 extern void ps_menu(GtkWidget *parent);
-
-extern void ps_twotone(int state);