ci: opravit nRF52 buildy na GH (lokální symlink leakl do trackovaného configu)

nRF52 CI buildy (RAK_4631*, wio_wm1110) padaly na
`PackageException: Can not create a symbolic link for
/home/user/projects/meshcore-nrf52-fw` — lokální build hack
(`framework-...@ symlink:///home/user/...`) byl commitnutý v
platformio.ini a na runneru ta cesta neexistuje. Pre-existing, ne
antispam změna; buildovalo jen lokálně.

- [nrf52_fw] pkg proměnná: committed default = fetchable git pin
  (plný SHA d541301…, tip meshcore-dev fork masteru s BLE patchem).
  Plný SHA schválně — shallow fetch krátkého SHA byl důvod symlinku.
- Symlink override přesunut do gitignorovaného platformio.local.ini
  ([nrf52_fw] pkg = symlink://…), takže lokální build jede dál a hack
  už neleakne do CI.
- TxtDataHelpers.cpp: `ltoa` (nedeklarované na STM32/newlib-nano,
  rozbíjelo wio-e5 build) → přenositelné `sprintf("%lu")`. int_part je
  nezáporná magnituda, znaménko se řeší zvlášť výš.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Fable 5 committed 2026-09-06 00:07:38 +02:00
1 parent 141a1c8069
commit 29dedf250d
2 files changed
+18 -12

No files matched your search

+5 -6
View File
@@ -100,12 +100,11 @@ static void _ftoa(float f, char *p, int *status)
*p++ = '-';
if (int_part == 0)
*p++ = '0';
else
{
ltoa(int_part, p, 10);
while (*p)
p++;
}
else
// ltoa() is not declared on every toolchain (STM32/newlib-nano lacks it,
// breaking the wio-e5 build); sprintf %lu is portable. int_part is the
// non-negative magnitude here -- the sign was already emitted above.
p += sprintf(p, "%lu", (unsigned long)int_part);
*p++ = '.';
if (frac_part == 0)
*p++ = '0';