diff options
Diffstat (limited to 'sw/dart-70/src')
-rw-r--r-- | sw/dart-70/src/main.rs | 2 | ||||
-rw-r--r-- | sw/dart-70/src/state.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/dart-70/src/main.rs b/sw/dart-70/src/main.rs index 7d6a789..77f6044 100644 --- a/sw/dart-70/src/main.rs +++ b/sw/dart-70/src/main.rs @@ -260,7 +260,7 @@ fn main() -> ! { let encoder_count : u16 = qei.count(); if encoder_count != last_encoder_count { - let delta = encoder_count.wrapping_sub(last_encoder_count); + let delta = last_encoder_count.wrapping_sub(encoder_count); let delta = if delta > 0x7FFF { delta as i32 - 0x10000 } else { delta as i32 }; let require_bfo_update = cortex_m::interrupt::free(|_cs| { diff --git a/sw/dart-70/src/state.rs b/sw/dart-70/src/state.rs index 38db150..c38f75d 100644 --- a/sw/dart-70/src/state.rs +++ b/sw/dart-70/src/state.rs @@ -1,7 +1,7 @@ pub const VHF_BAND_EDGE : u32 = 70_000_000; pub const VHF_INITIAL_VFO : u32 = 70_300_000; // Values below are measured with the assembled XTAL filter -pub const XTAL_FILT_FREQ : u32 = 11_057_510; +pub const XTAL_FILT_FREQ : u32 = 11_057_500; pub const BFO_LSB : u32 = XTAL_FILT_FREQ + 1_400; pub const BFO_USB : u32 = XTAL_FILT_FREQ - 1_400; pub const BFO_CW : u32 = XTAL_FILT_FREQ - 1_400; |