You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[skip-changelog] [breaking] Refactoring of board autodetection (#1717)
* Changes in errors.MultipleBoardsDetectedError and errors.NoBoardsDetectedError
- The message formatting has been fixed
- The errors now accepts a *rpc.Port instead of a *discovery.Port
- The new error NoBoardsDetectedError has been added
* Renamed some variable in compile/compile.go to improve readability
fqbn -> fqbnArg
port -> portArgs
detectedFqbn -> fqbn
discoveryPort -> port
* Renamed some variable in debug/debug.go to improve readability
fqbn -> fqbnArg
port -> portArgs
discoveryPort -> port
* Fixed some error formatting
* Renamed some variable in compile/compile.go to improve readability
fqbn -> fqbnArg
port -> portArgs
discoveryPort -> port
* Refactored board autodetection in upload/compile
- use `board.List()` instead of implementing a duplicate of it
- factored the logic that calculates FQBN, Port and possibly
autodetects FQBN, so we have a single implementation for all
commands of the cli.
* Removed SupportedUserFieldsRequest.Address gRPC parameter
Because it's no more needed
* Added notes about technical debt
* Factored --discovery-timeout flag and added timeout to board autodetection
* Added docs
* Fixed error message and integration tests
* Update cli/arguments/port.go
Co-authored-by: Umberto Baldi <34278123+umbynos@users.noreply.github.com>
Co-authored-by: Umberto Baldi <34278123+umbynos@users.noreply.github.com>
0 commit comments