kopia lustrzana https://gitlab.com/Teuniz/DSRemote
Enforce triggersource to channel 1 if the scope was set to triggersource D0 to D15.
rodzic
23728af201
commit
835033ec0e
2
global.h
2
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
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue