From 0259dec75bd7b43b0d74fe90ad061f74b5177c86 Mon Sep 17 00:00:00 2001 From: Attila Veghelyi Date: Wed, 16 Oct 2024 16:58:00 +0200 Subject: Use common functions from one file --- opgui.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'opgui.c') diff --git a/opgui.c b/opgui.c index cf8255f..c93dc86 100644 --- a/opgui.c +++ b/opgui.c @@ -29,7 +29,6 @@ #include "deviceRW.h" #include "fileIO.h" #include "progAVR.h" -#include #define MAXLINES 600 #define CONFIG_FILE "opgui.ini" @@ -44,6 +43,13 @@ void PrintMessageI2C(const char *msg); void ShowContext(); int FindDevice(int vid,int pid); void TestHw(); +int cmdline=0; +int vid=0x1209,pid=0x5432; +int DeviceDetected=0; +int IOTimer=0; +int skipV33check=0; +int waitS1=0,waitingS1=0; +int progress=0; #ifdef DEBUG int addrDebug=0; @@ -105,6 +111,7 @@ GtkWidget * VDD_ON; GtkWidget * b_io_active; GtkWidget * commandSend; GtkWidget * commandTransfer; +GtkWidget * b_V33check; GtkWidget * Hex_entry; GtkWidget * Address_entry; GtkWidget * Data_entry; @@ -151,7 +158,6 @@ int ee = 0; int readRes=0; char dev[64]=""; int devType=-1; -char str[4096]=""; char* cur_path=0; char* cur_pathEE=0; enum dev_column_t { @@ -176,11 +182,6 @@ char *groupNames[NUM_GROUPS] = { }; char *GROUP_ALL="*"; -int progress=0; -int waitS1=0,waitingS1=0; -int IOTimer=0; -int cmdline=0; - /// ///Exit gint delete_event( GtkWidget *widget,GdkEvent *event,gpointer data ) -- cgit v1.2.3-54-g00ecf