Enforce triggersource to channel 1 if the scope was set to triggersource D0 to D15.

merge-requests/1/merge
Teuniz 2021-05-29 14:36:49 +02:00
rodzic 23728af201
commit 835033ec0e
2 zmienionych plików z 15 dodań i 2 usunięć

Wyświetl plik

@ -35,7 +35,7 @@
#define PROGRAM_NAME "DSRemote"
#define PROGRAM_VERSION "0.37_2105291423"
#define PROGRAM_VERSION "0.37_2105291436"
#define MAX_PATHLEN 1024

Wyświetl plik

@ -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
{