]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
get rid of status_text()
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sat, 7 Dec 2024 16:59:52 +0000 (22:29 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sat, 7 Dec 2024 16:59:52 +0000 (22:29 +0530)
main.c
main.h
radio.c

diff --git a/main.c b/main.c
index 68ebbbddb31e6521a9acf35b75052411bd34ac3c..efe2c8d8f99a98e27a74690734697472f17b39ae 100644 (file)
--- a/main.c
+++ b/main.c
@@ -77,13 +77,6 @@ GtkWidget *grid;
 
 static GtkWidget *status;
 
-void status_text(char *text) {
-  gtk_label_set_text(GTK_LABEL(status), text);
-  usleep(100000);
-  while (gtk_events_pending())
-    gtk_main_iteration();
-}
-
 static pthread_t wisdom_thread_id;
 static int wisdom_running = 0;
 
@@ -180,7 +173,7 @@ static int init(void *data) {
   }
   strcpy(&wisdom_directory[strlen(wisdom_directory)], "/");
   g_info("Securing wisdom file in directory: %s\n", wisdom_directory);
-  status_text("Checking FFTW Wisdom file ...");
+  log_info("Checking FFTW Wisdom file ...");
   wisdom_running = 1;
   pthread_create(&wisdom_thread_id, NULL, wisdom_thread, wisdom_directory);
   while (wisdom_running) {
@@ -190,7 +183,7 @@ static int init(void *data) {
     while (gtk_events_pending()) {
       gtk_main_iteration();
     }
-    status_text(wisdom_get_status());
+    log_info(wisdom_get_status());
   }
 
   g_idle_add(ext_discovery, NULL);
diff --git a/main.h b/main.h
index 5b540ddee4dba8c07df886e09266f25411b3e507..accffb274679062a8183ae82c37a685dfeedd557 100644 (file)
--- a/main.h
+++ b/main.h
@@ -36,7 +36,6 @@ extern int display_height;
 extern int full_screen;
 extern GtkWidget *top_window;
 extern GtkWidget *grid;
-extern void status_text(char *text);
 
 extern bool keypress_cb(GtkWidget *widget, GdkEventKey *event, gpointer data);
 #endif
diff --git a/radio.c b/radio.c
index 9bbb98a560b7d542498b217f7aa7cfc6e86ad097..6fcb8f3792ea436394c72645b1e1910957639a22 100644 (file)
--- a/radio.c
+++ b/radio.c
@@ -940,7 +940,7 @@ void start_radio() {
         break;
     }
 
-    status_text(text);
+    log_info(text);
 
     sprintf(text, "piHPSDR: %s (%s %s) %s (%s) on %s", radio->name, p, version,
             ip, mac, iface);