Skip to content

bug: wait_busy() can loop forever on hardware fault #43

@gdellis

Description

@gdellis

Problem

wait_busy() in sx1262.cpp:484-494 tracks timeout but never exits the loop when timeout is reached. If is_busy() always returns true (hardware fault, busy pin stuck high), the loop runs forever.

Location

  • firmware/main/lora/sx1262.cpp:484-494

Severity

HIGH - System hang on LoRa hardware fault

Suggested Fix

Add explicit timeout check in the while loop condition, or return error on timeout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions