mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 08:57:38 +00:00
Added bitrate option for POCSAG baseband, PWMRSSI frequency option
Split SD card wiper app Cleanup for -Weffc++
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2014 Jared Boone, ShareBrained Technology, Inc.
|
||||
* Copyright (C) 2016 Furrtek
|
||||
*
|
||||
* This file is part of PortaPack.
|
||||
*
|
||||
@@ -57,7 +58,7 @@ private:
|
||||
audio.size()
|
||||
};
|
||||
|
||||
std::array<int16_t, 32> pwm;
|
||||
std::array<int16_t, 32> pwm { };
|
||||
const buffer_s16_t pwmrssi_audio_buffer {
|
||||
(int16_t*)pwm.data(),
|
||||
sizeof(pwm) / sizeof(int16_t)
|
||||
@@ -73,12 +74,12 @@ private:
|
||||
|
||||
AudioOutput audio_output { };
|
||||
|
||||
SpectrumCollector channel_spectrum;
|
||||
SpectrumCollector channel_spectrum { };
|
||||
|
||||
unsigned int c, synth_acc = 0;
|
||||
unsigned int c { 0 }, synth_acc { 0 };
|
||||
uint32_t synth_div { 0 };
|
||||
bool pwmrssi_enabled = false;
|
||||
uint32_t pwmrssi_freq;
|
||||
uint32_t pwmrssi_avg;
|
||||
uint32_t pwmrssi_avg { 0 };
|
||||
|
||||
bool configured { false };
|
||||
void pwmrssi_config(const PWMRSSIConfigureMessage& message);
|
||||
|
Reference in New Issue
Block a user