build-hal: add RENDERBUG_HAL define, fix logging output
This commit is contained in:
parent
5bb29cc59c
commit
04bdf5323c
@ -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}/")
|
||||
|
@ -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 {
|
||||
|
@ -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};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user