Address style, info, and warning-level issues reported by
`shellcheck build.sh -severity=style -o all -s bash`:
- Use mapfile instead of word-splitting command substitution (SC2207)
- Quote all variable expansions to prevent globbing/splitting (SC2086)
- Prefer [[ ]] over [ ] for bash tests (SC2292)
- Add braces to all variable references (SC2250)
- Fix pipe return value masking in get_pio_envs() (SC2312)
- Add default case to top-level case statement (SC2249)
- Assign TARGETS as array instead of string (SC2124)
- Use explicit -n for non-empty string checks (SC2244)
- Suppress SC2154 for environment variable DISABLE_DEBUG
- Replace grep|sed pipe with single sed -n in get_pio_envs()
Signed-off-by: Oleg Kulachenko <vvarg229@gmail.com>
The script uses bash-specific features (arrays, [[ ]], shopt, ${@:2}),
but the usage examples and synopsis in global_usage() all referenced
`sh build.sh`, which would fail on a strict POSIX shell. Replace all
occurrences with `bash build.sh` to match the shebang and actual
requirements.
Signed-off-by: Oleg Kulachenko <vvarg229@gmail.com>
* room server: added RegionMap, and new CommonCLI wiring, default_scope handling
* sensor: only minimal RegionMap wiring. Still needs work to handle default-scope
The Waveshare RP2040-LoRa board has an RF switch with two complementary
control lines:
- DIO2 (CTRL) -- driven automatically by the SX1262 chip: HIGH on TX,
LOW on RX
- GPIO17 (!CTRL) -- was not configured in MeshCore, so it floated and
the switch never properly selected the LNA/RX path
Without this pin driven, the RF switch never switches to RX mode,
resulting in completely degraded reception. TX was unaffected because
DIO2 alone is sufficient to activate the TX path.
Adding SX126X_RXEN=17 lets RadioLib drive GPIO17 as the complement of
DIO2, so the switch correctly routes the signal to the LNA on receive.
Reference: https://files.waveshare.com/wiki/RP2040-LoRa/Rp2040-lora-sch.pdf
variants/thinknode_m5/platformio.ini contained actual WiFi SSID and
password credentials (Livebox-633C) committed by mistake. Replaced
with placeholder values consistent with other variants (myssid/mypwd).