diff --git a/global.h b/global.h index 6b7e863..4c37e40 100644 --- a/global.h +++ b/global.h @@ -35,7 +35,7 @@ #define PROGRAM_NAME "DSRemote" -#define PROGRAM_VERSION "0.37_2105291423" +#define PROGRAM_VERSION "0.37_2105291436" #define MAX_PATHLEN 1024 diff --git a/read_settings_thread.cpp b/read_settings_thread.cpp index c8138fb..9dd90ee 100644 --- a/read_settings_thread.cpp +++ b/read_settings_thread.cpp @@ -934,8 +934,21 @@ void read_settings_thread::run() } else if((device->buf[0] == 'D') && (isdigit(device->buf[1]))) { - //FIXME (not supportde yet!) devparms->triggeredgesource = 7 + atoi(device->buf + 1); + //FIXME (not supported yet!) + // devparms->triggeredgesource = 7 + atoi(device->buf + 1); devparms->triggeredgesource = 0; + + usleep(TMC_GDS_DELAY); + + strlcpy(str, ":TRIG:EDG:SOUR CHAN1", 512); + + if(tmc_write(str) != 20) + { + line = __LINE__; + goto GDS_OUT_ERROR; + } + + usleep(TMC_GDS_DELAY); } else {