mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-26 16:26:06 -04:00
Add frequency correction (WIP).
This commit is contained in:
parent
0ed607b6dd
commit
9dd41ed48d
3 changed files with 89 additions and 2 deletions
|
@ -117,7 +117,8 @@ void set_direction(const rf::Direction new_direction) {
|
|||
}
|
||||
|
||||
bool set_tuning_frequency(const rf::Frequency frequency) {
|
||||
const auto tuning_config = tuning::config::create(frequency);
|
||||
rf::Frequency corrected_frequency = frequency * (1000000 - 10) / 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