_refresh_pin_pulls read a fixed 40 registers from get_internals(3), but the exposed array is per-chip: classic muxgpios[40], ESP32-S3 49 (GPIO0..48). The fixed bound silently missed S3 pulls on GPIO40-48. Read _GPIO_COUNT entries instead (set from the machine at startup). Pairs with qemu-lcgamboa 547e989, which models the S3 IO_MUX pull bits and exposes them via the get_internals override — together they make INPUT_PULLUP buttons work on the emulated S3 exactly like the classic ESP32 (verified on staging with GPIO4 and GPIO40). |
||
|---|---|---|
| .. | ||
| api | ||
| core | ||
| database | ||
| mcp | ||
| models | ||
| schemas | ||
| services | ||
| utils | ||
| __init__.py | ||
| main.py | ||