Skip to content

E4-2: write explicit prototypes for the 13 functions that rely on Arduino-generated ones #261

Closed

Description

@Strycher

Epic: #212

Mechanical, declaration-only. These are the only 13 authored functions called before their definition with no explicit forward declaration, which is the exact set that breaks the moment their code leaves the .ino (Appendix F). The regex-era plan said 70; the linker says 13.

calcBearing  calcDistanceKm  calculateForecast  getCardinal  getIaqQualityText
getTrendArrow  isBatteryConnected  loadBsecFromFRAM  loadBsecState  mktimeUTC
readBME688  readIMU  readSHT41

Add each prototype in the existing forward-declaration block. Four of the thirteen (calcBearing, calcDistanceKm, getCardinal, getIaqQualityText) are also leaves and become movable the moment this lands.

Independent of E4-1; either can land first.

Acceptance

  • python scripts/reference-graph.py reports 0 functions relying on generated prototypes
  • Build succeeds; nm symbol set, sizes and types unchanged (prototypes emit nothing)

Evidence: docs/god-object-inventory.md. Regenerate the figures with python scripts/reference-graph.py --appendix.

Activity

  1. added and removed
    board:readyBoard sync: Ready column
    on Sep 7, 2026
  2. added a commit that references this issue on Sep 7, 2026
  3. added
    board:doneBoard sync: Done column
    and removed on Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions