Hi there, looking at the parsing code it looks like the start time and trigger times are being switched (unless I'm missing something). The spec puts the start time first and the trigger time second which matches the variable name, but they're assigned the other way around.
comgo.go:596
// Read start date and time ([dd,mm,yyyy,hh,mm,ss.ssssss])
tempList = bytes.Split(lines[4+cfg.GetSampleRateNum()+chA.GetChannelTotal()+chD.GetChannelTotal()], []byte(","))
if start, err := time.Parse(TimeFormat, ByteToString(bytes.Join(tempList, []byte("T")))); err != nil {
return err
} else {
cfg.TriggerTime = start
}
// Read trigger date and time ([dd,mm,yyyy,hh,mm,ss.ssssss])
tempList = bytes.Split(lines[5+cfg.GetSampleRateNum()+chA.GetChannelTotal()+chD.GetChannelTotal()], []byte(","))
if trigger, err := time.Parse(TimeFormat, ByteToString(bytes.Join(tempList, []byte("T")))); err != nil {
return err
} else {
cfg.StartTime = trigger
}
Hi there, looking at the parsing code it looks like the start time and trigger times are being switched (unless I'm missing something). The spec puts the start time first and the trigger time second which matches the variable name, but they're assigned the other way around.
comgo.go:596