[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:
DigiH authored and GitHub committed 2025-08-16 15:03:19 +02:00
1 parent 5add388fbc
commit 14ceba5bee
4 files changed
+15 -15

No files matched your search

+7 -7
View File
@@ -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