mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-14 17:35:34 -04:00
Checkboxes, more AFSK options
This commit is contained in:
parent
70a646ca60
commit
f1166205b0
10 changed files with 317 additions and 61 deletions
|
@ -72,9 +72,9 @@ struct data_t {
|
|||
|
||||
// AFSK modem
|
||||
int32_t afsk_mark_freq;
|
||||
int32_t afsk_space_freq;
|
||||
int32_t afsk_space_freq; // Todo: optimize size, only 256 bytes of NVRAM !
|
||||
int32_t afsk_bitrate;
|
||||
uint8_t afsk_config;
|
||||
uint32_t afsk_config;
|
||||
|
||||
// Play dead unlock
|
||||
bool playing_dead;
|
||||
|
@ -130,11 +130,11 @@ void set_afsk_bitrate(const int32_t new_value) {
|
|||
data->afsk_bitrate = afsk_bitrate_range.clip(new_value);
|
||||
}
|
||||
|
||||
uint8_t afsk_config() {
|
||||
uint32_t afsk_config() {
|
||||
return data->afsk_config;
|
||||
}
|
||||
|
||||
void set_afsk_config(const uint8_t new_value) {
|
||||
void set_afsk_config(const uint32_t new_value) {
|
||||
data->afsk_config = new_value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue