Skip to content

boards/atmega_common: remove weak led_init()#12745

Merged
benpicco merged 1 commit intoRIOT-OS:masterfrom
benpicco:atmega-led_fix
Nov 19, 2019
Merged

boards/atmega_common: remove weak led_init()#12745
benpicco merged 1 commit intoRIOT-OS:masterfrom
benpicco:atmega-led_fix

Conversation

@benpicco
Copy link
Contributor

Contribution description

led_init() is already protected by an #ifdef, so no need for the weak symbol.

The problem is that the weak function does not get overridden, even when the board provides it's own led_init(), resulting in no LEDs being initialized.

Testing procedure

On any ATmega board, run tests/leds.

On master, no LEDs are flashing.
With this PR they should be properly initialized again.

Issues/PRs references

discovered in #12668

`led_init()` is already protected by an `#ifdef`, so no need for
the weak symbol.

The problem is that the weak function does not get overridden, even when
the board provides it's own led_init(), resulting in no LEDs being
initialized.
@benpicco benpicco added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Area: boards Area: Board ports labels Nov 19, 2019
@benpicco benpicco requested a review from maribu November 19, 2019 21:38
@maribu
Copy link
Member

maribu commented Nov 19, 2019

The problem is that the weak function does not get overridden, even when the board provides it's own led_init(), resulting in no LEDs being initialized.

This is super strange and I think this should be investigated, as other could might rely on proper handling of weak symbols as well.

Copy link
Member

@maribu maribu left a comment

Choose a reason for hiding this comment

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

ACK

@benpicco benpicco merged commit 1999e2f into RIOT-OS:master Nov 19, 2019
@benpicco benpicco deleted the atmega-led_fix branch November 19, 2019 23:14
@fjmolinas fjmolinas added this to the Release 2020.01 milestone Dec 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: boards Area: Board ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants