Skip to content

Fix module _ready flag and add license-headers CI job#3

Merged
peterus merged 1 commit into
mainfrom
fix-module-ready-and-ci
Mar 10, 2026
Merged

Fix module _ready flag and add license-headers CI job#3
peterus merged 1 commit into
mainfrom
fix-module-ready-and-ci

Conversation

@peterus

@peterus peterus commented Mar 10, 2026

Copy link
Copy Markdown
Owner

No description provided.

- Add setReady() to IModule and call it in ModuleManager::scanAndInit()
  after successful begin(). Without this, modules were never marked
  ready, so inputCount() returned 0 and the web UI showed no inputs
  in the function mapping dropdowns.
- Add license-headers CI job that checks all source, HTML, and Python
  files for the SPDX-License-Identifier: GPL-3.0-or-later marker.
Copilot AI review requested due to automatic review settings March 10, 2026 21:49
@peterus peterus enabled auto-merge March 10, 2026 21:50
@peterus peterus merged commit a8ca18b into main Mar 10, 2026
10 checks passed
@peterus peterus deleted the fix-module-ready-and-ci branch March 10, 2026 21:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Die PR behebt ein Initialisierungs-/Lifecycle-Problem im Transmitter-Modulsystem, damit Module nach erfolgreichem begin() tatsächlich als „ready“ markiert werden und anschließend von ModuleManager::update()/Input-Lesen berücksichtigt werden. Zusätzlich wird der CI-Workflow im Bereich License-Header-Check minimal korrigiert/vereinheitlicht.

Changes:

  • Setzt das _ready-Flag von Modulen nach erfolgreichem begin() im ModuleManager.
  • Ergänzt dafür eine setReady()-Methode im IModule-Interface.
  • Kleine Anpassung im CI Workflow beim Copyright-Header-Check (Echo-Zeile).

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
firmware/src/transmitter/modules/ModuleManager.cpp Markiert erkannte/initialisierte Module nach begin() als ready, damit sie im Update-Pfad nicht mehr ausgefiltert werden.
firmware/src/transmitter/modules/IModule.h Fügt setReady() hinzu, um das Ready-Flag nach erfolgreicher Initialisierung zu setzen.
.github/workflows/ci.yml Kleine Anpassung im license-headers Job (Ausgabezeile).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants