Fixed compiling issues
This commit is contained in:
@ -12,7 +12,7 @@ class SwitchProfileAction : public virtual ActionInterface
|
|||||||
public:
|
public:
|
||||||
void triggered() override
|
void triggered() override
|
||||||
{
|
{
|
||||||
switchProfile(index);
|
settingsutils::switchProfile(index);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#include "buttons.h"
|
#include "buttons.h"
|
||||||
#include "modes/defaultmode.h"
|
#include "modes/defaultmode.h"
|
||||||
|
|
||||||
|
using namespace std::chrono_literals;
|
||||||
|
|
||||||
int rotated{};
|
int rotated{};
|
||||||
bool requestFullRedraw{};
|
bool requestFullRedraw{};
|
||||||
|
|
||||||
@ -118,7 +120,7 @@ void InputDispatcher::profileButton(uint8_t index, bool pressed)
|
|||||||
if (profileButtonDisabled)
|
if (profileButtonDisabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
switchProfile(index);
|
settingsutils::switchProfile(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SWITCH_BLINK
|
#ifdef SWITCH_BLINK
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
#include "buttons.h"
|
#include "buttons.h"
|
||||||
|
|
||||||
|
using namespace std::chrono_literals;
|
||||||
|
|
||||||
namespace can {
|
namespace can {
|
||||||
namespace {
|
namespace {
|
||||||
constexpr const char * const TAG = "BOBBYCAN";
|
constexpr const char * const TAG = "BOBBYCAN";
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
#include "presets.h"
|
#include "presets.h"
|
||||||
|
|
||||||
namespace {
|
namespace settingsutils {
|
||||||
void switchProfile(uint8_t index)
|
void switchProfile(uint8_t index)
|
||||||
{
|
{
|
||||||
#ifdef SIMPLIFIED_TRIGGER_TRIGGERONPRESET
|
#ifdef SIMPLIFIED_TRIGGER_TRIGGERONPRESET
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
namespace {
|
namespace settingsutils {
|
||||||
void switchProfile(uint8_t index);
|
void switchProfile(uint8_t index);
|
||||||
}
|
}
|
||||||
|
@ -148,7 +148,7 @@ esp_err_t webserver_dump_nvs_handler(httpd_req_t *req)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
switchProfile(profile_num);
|
settingsutils::switchProfile(profile_num);
|
||||||
|
|
||||||
const auto cur_profile = settingsPersister.currentlyOpenProfileIndex();
|
const auto cur_profile = settingsPersister.currentlyOpenProfileIndex();
|
||||||
const auto profile_str = cur_profile ? std::to_string(*cur_profile) : "-";
|
const auto profile_str = cur_profile ? std::to_string(*cur_profile) : "-";
|
||||||
@ -166,7 +166,7 @@ esp_err_t webserver_dump_nvs_handler(httpd_req_t *req)
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
switchProfile(switchBackProfile);
|
settingsutils::switchProfile(switchBackProfile);
|
||||||
|
|
||||||
std::string body;
|
std::string body;
|
||||||
serializeJson(doc, body);
|
serializeJson(doc, body);
|
||||||
|
Reference in New Issue
Block a user