Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,4 @@ jobs:
echo "::error::$missing file(s) missing the GPL-3.0 copyright header."
exit 1
fi
echo "All files have correct copyright headers."
echo "All files have correct copyright headers."
5 changes: 5 additions & 0 deletions firmware/src/transmitter/modules/IModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ class IModule {
return _ready;
}

/// Mark the module as ready (called by ModuleManager after begin()).
void setReady() {
_ready = true;
}

/// Slot index this module occupies (0-based).
uint8_t slot() const {
return _slot;
Expand Down
1 change: 1 addition & 0 deletions firmware/src/transmitter/modules/ModuleManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ void ModuleManager::scanAndInit() {

auto mod = detectModule(slot);
if (mod && mod->begin()) {
mod->setReady();
_modules[slot] = std::move(mod);
}
_backplane.deselectAll();
Expand Down
Loading