[BT] Consistent checking for BLEDecryptor as a Boolean (#2230)
Consistent checking for BLEDecryptor as a Boolean, not just as a Define, so that … … also behaves correctly when set to false.
This commit is contained in:
1 parent
5add388fbc
commit
14ceba5bee
4 files changed
+15
-15
No files matched your search
+7
-7
@@ -654,13 +654,13 @@ void storeSignalValue(uint64_t);
|
||||
|
||||
#ifdef ZgatewayBT
|
||||
# ifndef BLEDecryptor
|
||||
# define BLEDecryptor true //true if decrypt encrypted PVVX or BTHome v2 service data
|
||||
# endif
|
||||
# ifndef JSON_BLE_AES_CUSTOM_KEYS
|
||||
# define JSON_BLE_AES_CUSTOM_KEYS 256 // 42 byte BLE Custom Key * 6 rounded up to 256.
|
||||
# endif
|
||||
# ifndef BLE_AES
|
||||
# define BLE_AES "00112233445566778899001122334455"
|
||||
# define BLEDecryptor true //true if decrypt encrypted PVVX, BTHome v2 or Victron Energy broadcast data
|
||||
# ifndef JSON_BLE_AES_CUSTOM_KEYS
|
||||
# define JSON_BLE_AES_CUSTOM_KEYS 256 // 42 byte BLE Custom Key * 6 rounded up to 256.
|
||||
# endif
|
||||
# ifndef BLE_AES
|
||||
# define BLE_AES "00112233445566778899001122334455"
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user