Skip to content

Commit

Permalink
Fix for proc_aprsrx and aprs_packet warnings, they are related
Browse files Browse the repository at this point in the history
  • Loading branch information
GullCode committed Apr 21, 2022
1 parent d617618 commit 2108ea5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions firmware/baseband/proc_aprsrx.hpp
Expand Up @@ -125,18 +125,18 @@ class APRSRxProcessor : public BasebandProcessor {
uint32_t sample_bits { 0 };
uint32_t phase { }, phase_inc { };
int32_t sample_mixed { }, prev_mixed { }, sample_filtered { }, prev_filtered { };
uint8_t last_bit;
uint8_t ones_count = 0;
uint8_t last_bit = 0;
uint8_t ones_count = 0 ;
uint8_t current_byte = 0;
uint8_t byte_index = 0;
uint8_t packet_buffer[256];
size_t packet_buffer_size = 0;

bool configured { false };
bool wait_start { };
bool bit_value { };
bool wait_start { 0 };
bool bit_value { 0 };

aprs::APRSPacket aprs_packet;
aprs::APRSPacket aprs_packet { };

void configure(const APRSRxConfigureMessage& message);
void capture_config(const CaptureConfigMessage& message);
Expand Down
2 changes: 1 addition & 1 deletion firmware/common/aprs_packet.hpp
Expand Up @@ -259,7 +259,7 @@ class APRSPacket {
bool valid_checksum = false;
uint8_t payload[256];
char address_buffer[15];
uint8_t payload_size;
uint8_t payload_size = 0 ;
Timestamp timestamp_ { };

float parse_lat_str_cmp(const std::string& lat_str){
Expand Down

0 comments on commit 2108ea5

Please sign in to comment.