mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-21 23:55:13 -05:00
Fixed rescuesdriq script not taking arguments correctly
This commit is contained in:
parent
501cd7fc6f
commit
18e20d36bf
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user