Skip to content

Conversation

@microbit-matt-hillsdon
Copy link
Collaborator

Add constants for the magic numbers.

No change in behaviour, though I did remove a field that we only write to.

The constants situation is a bit unfortunate. CRA via babel doesn't
support const enums (which are inlined) so I've not been able to use the
type definitions from pxt (or those that are in dapjs). When we extract
a separate library that could change so I've tried to keep the access
style source compatible.
In pxt this was used to delay reading serial if we were currently
flashing. We don't yet have serial working here and v2 doesn't use the
field for anything either.
@microbit-matt-hillsdon microbit-matt-hillsdon merged commit 013fe06 into main Mar 8, 2021
@microbit-matt-hillsdon microbit-matt-hillsdon deleted the flashing-types branch March 8, 2021 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants