From 5a05a758a106e74813755ca76ef75d66a4724392 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Wed, 27 Jul 2016 14:40:30 -0700 Subject: [PATCH] ReceiverModel: Use accessor method. --- firmware/application/receiver_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/application/receiver_model.cpp b/firmware/application/receiver_model.cpp index 4c9052ff6..73b844a30 100644 --- a/firmware/application/receiver_model.cpp +++ b/firmware/application/receiver_model.cpp @@ -161,7 +161,7 @@ void ReceiverModel::disable() { } int32_t ReceiverModel::tuning_offset() { - if( (baseband_configuration.mode == 4) ) { + if( (modulation() == 4) ) { return 0; } else { return -(sampling_rate() / 4);