Skip to content

Commit

Permalink
fix constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthbdn committed Jan 17, 2023
1 parent 0e181bf commit 2633910
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions BLEAdvertising.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@
#include <string>


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);
Expand All @@ -30,7 +29,7 @@ class BLEAdvertising
BLEDevice &ble;
bool isAdvertise;
std::string name;

int dataLength;
char data[DATA_MAX_SIZE];
char gapName[28];
Expand Down

0 comments on commit 2633910

Please sign in to comment.