Merge pull request #358 from ArjanOnwezen/proc_aprsrc_cpp_warning_fix

proc_aprsrx.cpp compile warning fix
This commit is contained in:
Erwin Ried 2021-05-12 12:40:47 +02:00 committed by GitHub
commit 182059b3c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,12 +141,11 @@ bool APRSRxProcessor::parse_bit(const uint8_t current_bit){
uint8_t decoded_bit = ~(current_bit ^ last_bit) & 0x1;
last_bit = current_bit;
int16_t log = decoded_bit == 0 ? -32768 : 32767;
//if( stream ) {
// const size_t bytes_to_write = sizeof(log) * 1;
// const auto result = stream->write(&log, bytes_to_write);
// }
//int16_t log = decoded_bit == 0 ? -32768 : 32767;
//if(stream){
// const size_t bytes_to_write = sizeof(log) * 1;
// const auto result = stream->write(&log, bytes_to_write);
//}
if(decoded_bit & 0x1){
if(ones_count < 8){