Skip to content

Commit

Permalink
Fixed BT compile
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchBradley committed Jan 27, 2024
1 parent d3cc04b commit 64e8663
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions FluidNC/src/WebUI/BTConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ namespace WebUI {
const char* const DEFAULT_BT_NAME = "FluidNC";

namespace WebUI {
extern EnumSetting* bt_enable;
extern StringSetting* bt_name;

extern BluetoothSerial SerialBT;

class BTChannel : public Channel {
Expand Down Expand Up @@ -70,9 +67,6 @@ namespace WebUI {

//boundaries
public:
static const int MAX_BTNAME_LENGTH = 32;
static const int MIN_BTNAME_LENGTH = 1;

BTConfig();

std::string info();
Expand All @@ -91,6 +85,9 @@ namespace WebUI {
};

class BTNameSetting : public StringSetting {
static const int MAX_BTNAME_LENGTH = 32;
static const int MIN_BTNAME_LENGTH = 1;

public:
BTNameSetting(const char* description, const char* grblName, const char* name, const char* defVal) :
StringSetting(description, WEBSET, WA, grblName, name, defVal, MIN_BTNAME_LENGTH, MAX_BTNAME_LENGTH) {}
Expand All @@ -108,7 +105,7 @@ namespace WebUI {
extern BTConfig bt_config;

extern EnumSetting* bt_enable;
extern StringSetting* bt_name;
extern BTNameSetting* bt_name;
}

#endif

0 comments on commit 64e8663

Please sign in to comment.