Refactor: replace hardcoded unit array size 7 with nd::MAX_UNITS
- Replace hardcoded with in NetDeck.ino (8 occurrences) - Add to nd_layout.h - Update test expectations in unit_tests.h and integration_tests.h from units[6] to units[7] to match the new reinforcement slot indexing This enables supporting more than 7 units in the future.
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
# T-Deck workspace — agent notes
|
||||
|
||||
## Common pitfalls
|
||||
|
||||
- never run searches across the whole disk; `find /` commands are forbidden because they take ages
|
||||
|
||||
## Toolchain
|
||||
|
||||
- platformio `pio` is in `~/.platformio/` (`~/.platformio/penv/bin/pio`), or
|
||||
on `PATH` if available.
|
||||
|
||||
```
|
||||
alias pio=~/.platformio/penv/bin/pio
|
||||
```
|
||||
|
||||
## Build & test — one command each, from the repo root
|
||||
|
||||
- `make netdeck` — builds BOTH targets of the app: ESP32-S3 firmware
|
||||
|
||||
Reference in New Issue
Block a user