Skip to content

Fix Fan Controller Definitions#40

Merged
miles-p merged 2 commits into
mainfrom
punch/fix_fan_controller_defs
May 9, 2026
Merged

Fix Fan Controller Definitions#40
miles-p merged 2 commits into
mainfrom
punch/fix_fan_controller_defs

Conversation

@miles-p
Copy link
Copy Markdown
Contributor

@miles-p miles-p commented Apr 21, 2026

TIFU by sending non-compiling code to main. Self-slab.

Against my better judgement, PR #38 sent non-working code to main. In the code that was merged, set_fan_mode was never actually defined, and the version that was tested on an actual NUSense was not the version that was sent to main, and because there is no build test on this repo, it slipped through and got merged...

This PR fixes this by actually defining set_fan_mode and also removes a redundant definition of a function that was brought in by STM32CubeMX.

This code has been compiled using STM32CubeIDE, however my existing PR #39 adds a build test to stop this from happening again by the way of PlatformIO integration :D.

@miles-p miles-p requested review from Claegtun and ysims April 21, 2026 23:58
@miles-p miles-p changed the title Punch/fix fan controller defs Fix Fan Controller Definitions Apr 22, 2026
Copy link
Copy Markdown
Contributor

@Claegtun Claegtun left a comment

Choose a reason for hiding this comment

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

Seems good to me.

@miles-p miles-p merged commit bf07b7e into main May 9, 2026
@miles-p miles-p deleted the punch/fix_fan_controller_defs branch May 9, 2026 00:56
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