1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 09:18:54 -05:00

Fixed rescuesdriq script not taking arguments correctly

This commit is contained in:
f4exb 2019-03-17 01:35:52 +01:00
parent 501cd7fc6f
commit 18e20d36bf

View File

@ -137,16 +137,19 @@ func main() {
if flagSeen["out"] {
if flagSeen["sr"] {
headerOrigin.SampleRate = uint32(*sampleRate)
} else if flagSeen["cf"] {
}
if flagSeen["cf"] {
headerOrigin.CenterFrequency = *centerFreq
} else if flagSeen["sz"] {
}
if flagSeen["sz"] {
if (*sampleSize == 16) || (*sampleSize == 24) {
headerOrigin.SampleSize = uint32(*sampleSize)
} else {
fmt.Println("Incorrect sample size specified. Defaulting to 16")
headerOrigin.SampleSize = 16
}
} else if flagSeen["ts"] {
}
if flagSeen["ts"] {
t, err := time.Parse(time.RFC3339, *timeStr)
if err == nil {
headerOrigin.StartTimestamp = t.Unix()