Skip to content

Think about removing potential race condition  #2

@Disasm

Description

@Disasm

Something may happen between these two lines:

if DEVICE_ID_STR.as_ptr().read_volatile() == 0 {
interrupt::free(|_| {

Also it's better to use ptr::write there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions