mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-31 12:34:29 -04:00
Store PPM in shared memory for now.
This commit is contained in:
parent
9dd41ed48d
commit
3874c82d57
4 changed files with 7 additions and 2 deletions
|
@ -26,6 +26,7 @@
|
|||
#include "max5864.hpp"
|
||||
#include "baseband_cpld.hpp"
|
||||
#include "baseband_sgpio.hpp"
|
||||
#include "portapack_shared_memory.hpp"
|
||||
|
||||
#include "tuning.hpp"
|
||||
|
||||
|
@ -117,7 +118,7 @@ void set_direction(const rf::Direction new_direction) {
|
|||
}
|
||||
|
||||
bool set_tuning_frequency(const rf::Frequency frequency) {
|
||||
rf::Frequency corrected_frequency = frequency * (1000000 - 10) / 1000000;
|
||||
rf::Frequency corrected_frequency = frequency * (1000000 + shared_memory.correction_ppm) / 1000000;
|
||||
const auto tuning_config = tuning::config::create(corrected_frequency);
|
||||
if( tuning_config.is_valid() ) {
|
||||
first_if.disable();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue