mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 23:48:11 +01:00
fix
This commit is contained in:
parent
727846b216
commit
46b6ca0f02
2 changed files with 4 additions and 2 deletions
|
@ -42,3 +42,5 @@ CONFIG_SCHEMA = cv.All(
|
|||
async def to_code(config):
|
||||
var = cg.new_Pvariable(config[CONF_ID])
|
||||
await cg.register_component(var, config)
|
||||
cg.add_build_flag("-Wl,--wrap=tud_mount_cb")
|
||||
cg.add_build_flag("-Wl,--wrap=tud_umount_cb")
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
extern "C" {
|
||||
bool configured;
|
||||
|
||||
void tud_mount_cb(void){
|
||||
void __wrap_tud_mount_cb(void){
|
||||
configured = true;
|
||||
}
|
||||
|
||||
void tud_umount_cb(void){
|
||||
void __wrap_tud_umount_cb(void){
|
||||
configured = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue