Play dead actually works, fixed 7bit AFSK, AFSK repeat, started whistle mode

This commit is contained in:
furrtek
2015-09-10 20:36:39 +02:00
parent 07754727ed
commit 9a7657fb38
22 changed files with 447 additions and 128 deletions
+2
View File
@@ -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);
+1 -1
View File
@@ -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;
+5
View File
@@ -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;
+1
View File
@@ -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;