mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-10 08:39:29 +00:00
Play dead actually works, fixed 7bit AFSK, AFSK repeat, started whistle mode
This commit is contained in:
@@ -258,6 +258,8 @@ public:
|
||||
) : Message { ID::TXDone }
|
||||
{
|
||||
}
|
||||
|
||||
int n = 0;
|
||||
};
|
||||
|
||||
class MessageHandlerMap {
|
||||
|
||||
@@ -77,7 +77,7 @@ struct data_t {
|
||||
uint32_t afsk_config;
|
||||
|
||||
// Play dead unlock
|
||||
bool playing_dead;
|
||||
uint32_t playing_dead;
|
||||
uint32_t playdead_sequence;
|
||||
};
|
||||
|
||||
@@ -138,11 +138,11 @@ void set_afsk_config(const uint32_t new_value) {
|
||||
data->afsk_config = new_value;
|
||||
}
|
||||
|
||||
bool playing_dead() {
|
||||
uint32_t playing_dead() {
|
||||
return data->playing_dead;
|
||||
}
|
||||
|
||||
void set_playing_dead(const bool new_value) {
|
||||
void set_playing_dead(const uint32_t new_value) {
|
||||
data->playing_dead = new_value;
|
||||
}
|
||||
|
||||
|
||||
@@ -49,8 +49,8 @@ void set_afsk_bitrate(const int32_t new_value);
|
||||
uint32_t afsk_config();
|
||||
void set_afsk_config(const uint32_t new_value);
|
||||
|
||||
bool playing_dead();
|
||||
void set_playing_dead(const bool new_value);
|
||||
uint32_t playing_dead();
|
||||
void set_playing_dead(const uint32_t new_value);
|
||||
|
||||
uint32_t playdead_sequence();
|
||||
void set_playdead_sequence(const uint32_t new_value);
|
||||
|
||||
@@ -43,7 +43,7 @@ struct SharedMemory {
|
||||
|
||||
uint32_t rdsdata[16];
|
||||
|
||||
char lcrdata[256];
|
||||
uint8_t lcrdata[256];
|
||||
uint32_t afsk_samples_per_bit;
|
||||
uint32_t afsk_phase_inc_mark;
|
||||
uint32_t afsk_phase_inc_space;
|
||||
|
||||
@@ -483,6 +483,11 @@ void Button::set_text(const std::string value) {
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
void Button::set_text(const int value) { //std::string
|
||||
text_ = value;
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
void Button::set_style(const Style* new_style) {
|
||||
if( new_style != style_ ) {
|
||||
style_ = new_style;
|
||||
|
||||
@@ -270,6 +270,7 @@ public:
|
||||
}
|
||||
|
||||
void set_text(const std::string value);
|
||||
void set_text(const int value);
|
||||
void set_style(const Style* new_style);
|
||||
std::string text() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user