kopia lustrzana https://github.com/cyoung/stratux
PPM uint16 -> int.
rodzic
c3e6d41ebe
commit
1f46ccda01
|
@ -504,7 +504,7 @@ type settings struct {
|
||||||
AHRS_Enabled bool
|
AHRS_Enabled bool
|
||||||
DEBUG bool
|
DEBUG bool
|
||||||
ReplayLog bool // Startup only option. Cannot be changed during runtime.
|
ReplayLog bool // Startup only option. Cannot be changed during runtime.
|
||||||
PPM uint16
|
PPM int
|
||||||
}
|
}
|
||||||
|
|
||||||
type status struct {
|
type status struct {
|
||||||
|
|
|
@ -102,7 +102,7 @@ func sdrReader() {
|
||||||
//---------- Get/Set Freq Correction ----------
|
//---------- Get/Set Freq Correction ----------
|
||||||
freqCorr := dev.GetFreqCorrection()
|
freqCorr := dev.GetFreqCorrection()
|
||||||
log.Printf("\tGetFreqCorrection: %d\n", freqCorr)
|
log.Printf("\tGetFreqCorrection: %d\n", freqCorr)
|
||||||
err = dev.SetFreqCorrection(int(globalSettings.PPM))
|
err = dev.SetFreqCorrection(globalSettings.PPM)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("\tSetFreqCorrection %d Failed, error: %s\n", globalSettings.PPM, err)
|
log.Printf("\tSetFreqCorrection %d Failed, error: %s\n", globalSettings.PPM, err)
|
||||||
} else {
|
} else {
|
||||||
|
|
Ładowanie…
Reference in New Issue