Partitially done

This commit is contained in:
CommanderRedYT
2022-10-05 12:46:55 +02:00
parent f8b1454f9a
commit 129cc64d24
6 changed files with 522 additions and 510 deletions

View File

@ -1,4 +1,4 @@
set(headers
set(BOBBY_HEADERS
accessorhelpers.h
accessors/globalaccessors.h
accessors/settingsaccessors.h
@ -159,6 +159,8 @@ set(headers
displays/qrcodedebug.h
displays/qrdisplay.h
displays/qrimportdisplay.h
displays/setup/bobbycloudconfig.h
displays/setup/screenorientation.h
displays/speedinfodisplay.h
displays/spirodisplay.h
displays/starfielddisplay.h
@ -259,7 +261,7 @@ set(headers
wifiguiutils.h
)
set(sources
set(BOBBY_SOURCES
accessors/wifistaconfigaccessors.cpp
actions/assertaction.cpp
actions/bluetoothbeginaction.cpp
@ -410,6 +412,8 @@ set(sources
displays/qrcodedebug.cpp
displays/qrdisplay.cpp
displays/qrimportdisplay.cpp
displays/setup/bobbycloudconfig.cpp
displays/setup/screenorientation.cpp
displays/speedinfodisplay.cpp
displays/spirodisplay.cpp
displays/starfielddisplay.cpp
@ -519,14 +523,16 @@ set(dependencies
idf_component_register(
SRCS
${headers}
${sources}
${BOBBY_HEADERS}
${BOBBY_SOURCES}
INCLUDE_DIRS
.
REQUIRES
${dependencies}
)
add_library(bobbyboardcomputer ${BOBBY_SOURCES} ${BOBBY_HEADERS})
execute_process(COMMAND git rev-parse HEAD
OUTPUT_VARIABLE GIT_REV ERROR_QUIET
)

View File

@ -0,0 +1 @@
#include "bobbycloudconfig.h"

View File

@ -0,0 +1 @@
#pragma once

View File

@ -0,0 +1 @@
#include "screenorientation.h"

View File

@ -0,0 +1 @@
#pragma once

View File

@ -487,6 +487,8 @@ public:
ConfigWrapperLegacy<bool> bleFenceEnabled {false, DoReset, {}, "bleFenceEnabled" };
} bleSettings;
ConfigWrapperLegacy<bool> setupDone {false, DoReset, {}, "setupDone" };
#define NEW_SETTINGS(x) \
x(baseMacAddressOverride) \
x(hostname) \