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:")
|
print(f"HAL configuration:")
|
||||||
for framework in frameworks:
|
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>"])
|
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
|
HAL_ESP8266
|
||||||
} HalBackend;
|
} HalBackend;
|
||||||
|
|
||||||
constexpr HalBackend DefaultBackend = HAL_ESP8266;
|
constexpr HalBackend DefaultBackend = RENDERBUG_HAL;
|
||||||
|
|
||||||
template<HalBackend Backend = DefaultBackend>
|
template<HalBackend Backend = DefaultBackend>
|
||||||
class PlatformImpl {
|
class PlatformImpl {
|
||||||
|
@ -31,7 +31,7 @@ Buttons::read()
|
|||||||
//Log.info("Not emitting release from previous chord");
|
//Log.info("Not emitting release from previous chord");
|
||||||
m_wasChord[i] = false;
|
m_wasChord[i] = false;
|
||||||
} else {
|
} else {
|
||||||
return InputEvent{InputEvent::UserInput, buttonID};
|
return InputEvent{InputEvent::ButtonPress, buttonID};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user