]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
fixed bug saving state on exit
authorJohn Melton g0orx/n6lyt <john.d.melton@googlemail.com>
Mon, 2 May 2016 08:11:07 +0000 (08:11 +0000)
committerJohn Melton g0orx/n6lyt <john.d.melton@googlemail.com>
Mon, 2 May 2016 08:11:07 +0000 (08:11 +0000)
main.c
menu.c
pihpsdr
release/pihpsdr.tar
release/pihpsdr/pihpsdr
sliders.c

diff --git a/main.c b/main.c
index b5bbb6f2d9721a7196e152d340140f5ac582b9b0..3890f2c39b36b06efaf0bccc0890be2433b76d9f 100644 (file)
--- a/main.c
+++ b/main.c
@@ -671,6 +671,7 @@ gboolean main_delete (GtkWidget *widget) {
   } else {
     new_protocol_stop();
   }
+  radioSaveState();
   _exit(0);
 }
 
diff --git a/menu.c b/menu.c
index 259de959f833e365246d6340e5b7d355f2922b84..eab5a0b37948b974dcc2be3e7ef3effe20ab0a52 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -219,6 +219,7 @@ static gboolean exit_pressed_event_cb (GtkWidget *widget,
   } else {
     new_protocol_stop();
   }
+  radioSaveState();
   _exit(0);
 }
 
@@ -234,6 +235,7 @@ static gboolean reboot_pressed_event_cb (GtkWidget *widget,
   } else {
     new_protocol_stop();
   }
+  radioSaveState();
   system("reboot");
   _exit(0);
 }
@@ -250,6 +252,7 @@ static gboolean shutdown_pressed_event_cb (GtkWidget *widget,
   } else {
     new_protocol_stop();
   }
+  radioSaveState();
   system("shutdown -h -P now");
   _exit(0);
 }
diff --git a/pihpsdr b/pihpsdr
index 86678a96eca17781fc0007e308c61a4537ee6a88..f100b70e482633b8e8ce3f988a32b9a481f3e454 100755 (executable)
Binary files a/pihpsdr and b/pihpsdr differ
index 185f2388fbc8ef5c9ee7e6135efa5fd0d96a09bf..cdb136bf6066f72c45243ddddd0d45f2e6023367 100644 (file)
Binary files a/release/pihpsdr.tar and b/release/pihpsdr.tar differ
index 86678a96eca17781fc0007e308c61a4537ee6a88..f100b70e482633b8e8ce3f988a32b9a481f3e454 100755 (executable)
Binary files a/release/pihpsdr/pihpsdr and b/release/pihpsdr/pihpsdr differ
index 3ed778cb50a372ad1a86e1b96c1727ec0cc58601..4a76e19fb3c2ed2075bf5e203a07342103a3b861 100644 (file)
--- a/sliders.c
+++ b/sliders.c
@@ -81,7 +81,7 @@ fprintf(stderr,"scale_timeout_cb\n");
 }
 
 static void attenuation_value_changed_cb(GtkWidget *widget, gpointer data) {
-  attenuation=gtk_range_get_value(GTK_RANGE(attenuation_scale));
+  attenuation=(int)gtk_range_get_value(GTK_RANGE(attenuation_scale));
   set_attenuation(attenuation);
 }