]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
checks for device status to allow start
authorJohn Melton g0orx/n6lyt <john.d.melton@googlemail.com>
Mon, 2 May 2016 09:06:57 +0000 (09:06 +0000)
committerJohn Melton g0orx/n6lyt <john.d.melton@googlemail.com>
Mon, 2 May 2016 09:06:57 +0000 (09:06 +0000)
main.c
pihpsdr
release/pihpsdr.tar
release/pihpsdr/pihpsdr

diff --git a/main.c b/main.c
index 3890f2c39b36b06efaf0bccc0890be2433b76d9f..b95cca49f8f46b9d8979b73c72f6da74c03aa936 100644 (file)
--- a/main.c
+++ b/main.c
@@ -802,6 +802,14 @@ gint init(void* arg) {
               gtk_grid_attach(GTK_GRID(grid),start_button,4,i,1,1);
               g_signal_connect(start_button,"pressed",G_CALLBACK(start_cb),(gpointer *)i);
 
+              // if not available then cannot start it
+              if(d->status!=STATE_AVAILABLE) {
+                gtk_button_set_label(GTK_BUTTON(start_button),"In Use");
+                gtk_widget_set_sensitive(start_button, FALSE);
+              }
+
+              // check subnet to see if can access
+
               GtkWidget *configure_button=gtk_button_new_with_label("Configure");
               gtk_widget_override_font(configure_button, pango_font_description_from_string("Arial 18"));
               gtk_widget_show(configure_button);
diff --git a/pihpsdr b/pihpsdr
index f100b70e482633b8e8ce3f988a32b9a481f3e454..e2f28740c54a7548f32c6ed270bf0e550715aac7 100755 (executable)
Binary files a/pihpsdr and b/pihpsdr differ
index cdb136bf6066f72c45243ddddd0d45f2e6023367..b396a3fb467762adf9749dd1e0803ee955da32cc 100644 (file)
Binary files a/release/pihpsdr.tar and b/release/pihpsdr.tar differ
index f100b70e482633b8e8ce3f988a32b9a481f3e454..e2f28740c54a7548f32c6ed270bf0e550715aac7 100755 (executable)
Binary files a/release/pihpsdr/pihpsdr and b/release/pihpsdr/pihpsdr differ