Skip to content

bug: component init errors ignored in main.cpp #44

@gdellis

Description

@gdellis

Problem

GPS, LoRa, Accelerometer, and BLE init() return values are ignored in main.cpp:39-53. Only BatteryDriver::init() has error handling. If any critical component fails to initialize, the system runs in a broken state undetected.

Location

  • firmware/main/main.cpp:39-53

Severity

HIGH - System operates in broken state without warning

Suggested Fix

Add error checking for all component init() calls and transition to ERROR state if critical components fail.

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