Skip to content

Commit

Permalink
Fixed conditionally unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Jun 24, 2023
1 parent 851431f commit ac96bbb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/WeatherSensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -969,9 +969,11 @@ First two bytes are an LFSR-16 digest, generator 0x8810 key 0xabf9 with a final
#ifdef BRESSER_LIGHTNING
DecodeStatus WeatherSensor::decodeBresserLightningPayload(uint8_t *msg, uint8_t msgSize)
{
// see AS3935 Datasheet, Table 17 - Distance Estimation
uint8_t const distance_map[] = { 1, 5, 6, 8, 10, 12, 14, 17, 20, 24, 27, 31, 34, 37, 40, 63 };

#if CORE_DEBUG_LEVEL == ARDUHAL_LOG_LEVEL_VERBOSE
// see AS3935 Datasheet, Table 17 - Distance Estimation
uint8_t const distance_map[] = { 1, 5, 6, 8, 10, 12, 14, 17, 20, 24, 27, 31, 34, 37, 40, 63 };
#endif

// data whitening
uint8_t msgw[MSG_BUF_SIZE];
for (unsigned i = 0; i < msgSize; ++i) {
Expand Down

0 comments on commit ac96bbb

Please sign in to comment.