build-hal: add RENDERBUG_HAL define, fix logging output

This commit is contained in:
Torrie Fischer 2023-12-23 11:02:32 +01:00
parent 5bb29cc59c
commit 04bdf5323c
3 changed files with 5 additions and 4 deletions

View File

@ -4,6 +4,7 @@ frameworks = env.get("PIOFRAMEWORK")
print(f"HAL configuration:")
for framework in frameworks:
env.Append(SRC_FILTER=[f"+<platform/{framework}/{board}/*>"])
env.Append(SRC_FILTER=[f"+<platform/{framework}/{board}/>"])
env.Append(SRC_FILTER=[f"+<platform/{framework}/*.cpp>"])
print(f"- platform/{framework}{board}")
env.Append(CPPDEFINES=[f"RENDERBUG_HAL=HAL_{board.upper()}"])
print(f"- platform/{framework}/{board}/")

View File

@ -8,7 +8,7 @@ typedef enum {
HAL_ESP8266
} HalBackend;
constexpr HalBackend DefaultBackend = HAL_ESP8266;
constexpr HalBackend DefaultBackend = RENDERBUG_HAL;
template<HalBackend Backend = DefaultBackend>
class PlatformImpl {

View File

@ -31,7 +31,7 @@ Buttons::read()
//Log.info("Not emitting release from previous chord");
m_wasChord[i] = false;
} else {
return InputEvent{InputEvent::UserInput, buttonID};
return InputEvent{InputEvent::ButtonPress, buttonID};
}
}
}