Skip to content

fix(steami_config): Simplify examples for frozen driver imports. #248

@nedseb

Description

@nedseb

Context

Now that make firmware (PR #246) enables building firmware with drivers frozen in ROM, the RAM management hacks in examples are no longer needed.

Problem

calibrate_temperature.py uses __import__() / sys.modules.pop() / gc.collect() to load and unload drivers one at a time to stay within RAM limits. With frozen drivers, all imports come from ROM and don't consume significant RAM.

Solution

Replace dynamic imports with standard from xxx import XXX imports. Remove gc.collect() and sys.modules.pop() workarounds.

Related

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreleased

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions