velxio/frontend/src
ciegovolador 9b86c816c1 fix(sim): keep PwmCallback 2-arg compatible via arity dispatch
Revert the earlier approach of widening the existing PWM-callback assertions to
accept the new timeMs arg — that masked a contract change rather than fixing it.
Instead, updatePwm now hands the optional timeMs only to listeners that declare
a 3rd parameter (cb.length >= 3) — i.e. the buzzer, which needs the precise
onset time. Plain (pin, dutyCycle) listeners, and the existing
toHaveBeenCalledWith(pin, dutyCycle) tests, see an unchanged 2-arg call, so the
original PwmCallback contract is preserved.

Add a PinManager test locking the dispatch: a 2-param listener stays 2-arg; a
3-param listener receives timeMs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 03:29:44 -03:00
..
__pro_stub__
__tests__ fix(sim): keep PwmCallback 2-arg compatible via arity dispatch 2026-06-11 03:29:44 -03:00
assets
components feat(library-manager): collapse to a single unified tab with state-aware row actions 2026-06-08 15:51:34 +02:00
data feat(examples): declare library manifests for the two lib-using AVR examples (P2.4-arduino examples) 2026-06-08 04:24:02 +02:00
desktop
hooks
i18n
lib
pages feat(library-manifest): per-board manifests + autocomplete 2026-06-07 06:07:48 +02:00
services feat(P2.2c): show per-user custom libs in the Library Manager + autocomplete 2026-06-07 19:58:13 +02:00
simulation fix(sim): keep PwmCallback 2-arg compatible via arity dispatch 2026-06-11 03:29:44 -03:00
store feat(library-manifest): per-board manifests + autocomplete 2026-06-07 06:07:48 +02:00
tokens
types feat(library-manifest): per-board manifests + autocomplete 2026-06-07 06:07:48 +02:00
utils feat(library-manifest): per-board manifests + autocomplete 2026-06-07 06:07:48 +02:00
velxio-elements
App.css
App.tsx
entry-server.tsx
index.css
main.tsx
seoRoutes.ts
vite-env.d.ts