Skip to content

Replace noInterrupts/Interrupts with InterruptLock in EEPROM #6589

Closed
@devyte

Description

@devyte

Basic Infos

  • This issue complies with the issue POLICY doc.
  • I have read the documentation at readthedocs and the issue is not addressed there.
  • I have tested that the issue is present in current master branch (aka latest git).
  • I have searched the issue tracker for a similar issue.
  • If there is a stack dump, I have decoded it.
  • I have filled out all fields below.

Platform

  • Hardware: All
  • Core Version: latest git today
  • Development Env: All
  • Operating System: All

Problem Description

EEPROM class is using noInterrupts/interrupts, and there is an spi operation in between. Thisnusage doesn't allow nesting, and it blindly disables/enables all interrupts without regard for previous state.

Replace with scoped InterruptLock class.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions