From 263391072aeb965835cfc02c2eacbe2fe5d7d50f Mon Sep 17 00:00:00 2001 From: Jonathan BAUDIN Date: Tue, 17 Jan 2023 09:25:43 +0000 Subject: [PATCH] fix constexpr --- BLEAdvertising.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BLEAdvertising.h b/BLEAdvertising.h index c9f10f3..908440e 100644 --- a/BLEAdvertising.h +++ b/BLEAdvertising.h @@ -12,13 +12,12 @@ #include +constexpr int DATA_MAX_SIZE = 32; class BLEAdvertising { public: - constexpr int DATA_MAX_SIZE = 32; - BLEAdvertising(BLEDevice &ble) : ble(ble), isAdvertise(false) {} void setDeviceName(std::string name) { this->name = name; updateAdvertising(); } void setData(std::string str); @@ -30,7 +29,7 @@ class BLEAdvertising BLEDevice &ble; bool isAdvertise; std::string name; - + int dataLength; char data[DATA_MAX_SIZE]; char gapName[28];