macsniff.cpp fixed compiler warning

This commit is contained in:
Klaus K Wilting committed 2018-08-04 18:13:42 +02:00
1 parent 0a63b444de
commit 2df6700b2d
2 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ build_flags =
-D_lmic_config_h_ -D_lmic_config_h_
-include "src/paxcounter.conf" -include "src/paxcounter.conf"
-include "src/hal/${PIOENV}.h" -include "src/hal/${PIOENV}.h"
-w ; -w
[env:test] [env:test]
platform = ${common_env_data.platform_espressif32} platform = ${common_env_data.platform_espressif32}
+4 -2
View File
@@ -48,8 +48,10 @@ bool mac_add(uint8_t *paddr, int8_t rssi, bool sniff_type) {
bool added = false; bool added = false;
int8_t beaconID; // beacon number in test monitor mode int8_t beaconID; // beacon number in test monitor mode
uint16_t hashedmac; // temporary buffer for generated hash value uint16_t hashedmac; // temporary buffer for generated hash value
uint32_t addr2int, uint32_t addr2int; // temporary buffer for shortened MAC
vendor2int; // temporary buffer for shortened MAC and Vendor OUI #ifdef VENDORFILTER
uinit32_t vendor2int; // temporary buffer for Vendor OUI
#endif
// only last 3 MAC Address bytes are used for MAC address anonymization // only last 3 MAC Address bytes are used for MAC address anonymization
// but since it's uint32 we take 4 bytes to avoid 1st value to be 0 // but since it's uint32 we take 4 bytes to avoid 1st value to be 0