Commit Graph
414 Commits
Author SHA1 Message Date
David Lechner 7be42b143a convert ble-uart sagas to typed-redux-saga/macro 2021-01-23 18:34:02 -06:00
David Lechner 425390ef0b convert lwp3-bootloader-protocol sagas to typed-redux-saga/macro 2021-01-23 18:30:55 -06:00
David Lechner 19d8f9ce3a convert license sagas to typed-redux-saga/macro 2021-01-23 18:26:57 -06:00
David Lechner 97a2a6671b convert error-log sagas to typed-redux-saga/macro 2021-01-23 18:25:17 -06:00
David Lechner a862800dda convert notification sagas to typed-redux-saga/macro 2021-01-23 18:24:23 -06:00
David Lechner f51a0377a9 convert settings sagas to typed-redux-saga/macro 2021-01-23 18:21:15 -06:00
David Lechner d578882031 convert app sagas to typed-redux-saga/macro 2021-01-23 18:19:15 -06:00
David Lechner 6e8629c838 ignore not-test code in coverage 2021-01-23 18:16:56 -06:00
David Lechner 9552e04830 Merge pull request #258 from pybricks/dlech
README: add some badges
2021-01-23 18:06:50 -06:00
David Lechner 2dae35702f README: add some badges 2021-01-23 18:02:45 -06:00
David Lechner 997d2da50d Merge pull request #257 from pybricks/dlech
github: publish tags instead of master branch
2021-01-23 18:02:17 -06:00
David Lechner 2082f3bf7d github: publish tags instead of master branch 2021-01-23 17:54:59 -06:00
David Lechner 25cba2c29d Merge pull request #256 from pybricks/dlech
version bump
2021-01-23 17:42:13 -06:00
David Lechner d37459b3f7 version bump 2021-01-23 17:38:25 -06:00
David Lechner 1909e49b24 Merge pull request #254 from pybricks/dlech
improved firmware flash error handling
2021-01-23 17:36:52 -06:00
David Lechner 467627dc75 flash-firmware: drop error on fail to connect
This error is already handled elsewhere.
2021-01-23 17:29:43 -06:00
David Lechner 5d9040647b fix two-level merging of state in tests 2021-01-23 15:46:20 -06:00
David Lechner dcaf9f6ff4 fix checksum verification
the checksum returned by the hub is only one byte, so the 4-byte
checksum used in the firmware can't be used
2021-01-23 15:28:38 -06:00
David Lechner 5d1311216c add notifications for firmware flash errors 2021-01-23 15:27:36 -06:00
David Lechner 1a6f77ece3 remove disconnectMonitor()
This fixes multiple didFailToFinish() actions for a single flash
firmware request in certain cases.

Since 783f7e2 is fixed, waitForDidRequest() will always return with
success or error. So when used alone, waitForDidRequest() will process
the error. When using race(waitForDidRequest(), waitForResponse()),
waitForResponse() will handle the error if it wins the race and cancel
waitForResponse().
2021-01-23 13:46:54 -06:00
David Lechner 819810e52a add workaround for bluez notification issue
https://crbug.com/1170085
2021-01-23 13:36:33 -06:00
David Lechner 783f7e2337 fix write function being cancelled on disconnect 2021-01-22 20:25:01 -06:00
David Lechner bf6d64c211 fix unbound method call 2021-01-22 19:03:37 -06:00
David Lechner b5d3fe17da add proper error handling for checksum mismatch 2021-01-22 18:54:43 -06:00
David Lechner 768762347a add proper error handling for firmware flash size 2021-01-22 18:29:47 -06:00
David Lechner 4bbd1efad5 add proper error handling for init command error 2021-01-22 18:23:59 -06:00
David Lechner 3208faa7e6 add proper error handling for fail to fetch 2021-01-22 17:44:10 -06:00
David Lechner b1883a9d1c make sure we are getting coverage of checksum messages 2021-01-22 16:51:42 -06:00
David Lechner 2f5d1fb976 add another test for mismatch device type 2021-01-22 16:39:41 -06:00
David Lechner e984cffbb4 add try/catch for unexpected errors 2021-01-22 16:30:52 -06:00
David Lechner e5d98cdd84 add proper error handling for bad device id 2021-01-22 16:22:54 -06:00
David Lechner 3ec067e930 add test for unknown bootloader command 2021-01-22 16:08:13 -06:00
David Lechner 8ad2b78d4c add proper error handling for hub erase fail 2021-01-22 15:58:10 -06:00
David Lechner b58ec9a754 fix HubError type check 2021-01-22 15:58:10 -06:00
David Lechner c1c08e5ced add state initializer in async saga constructor 2021-01-22 15:58:10 -06:00
David Lechner 08fea237c9 change setState() to updateState()
this way we don't wipe out state if we change a different value
2021-01-22 15:58:10 -06:00
David Lechner 79e06bcd51 add test for response timeout 2021-01-22 15:58:10 -06:00
David Lechner 7a5e344b66 add helper function to disconnect and cancel 2021-01-22 15:58:10 -06:00
David Lechner a88fa3d425 consolidate firmware fail to start and finish
they had too much overlap
2021-01-22 15:58:10 -06:00
David Lechner f3eef68131 add proper error handling of BLE send error 2021-01-22 15:58:10 -06:00
David Lechner 18edc7870e add disconnect monitor to firmware flash sagas 2021-01-22 15:58:10 -06:00
David Lechner 2d44705112 proper error handling for failure to connect 2021-01-22 15:58:10 -06:00
David Lechner d38ae70ab2 proper error handling for bad checksum algorithm 2021-01-22 15:58:10 -06:00
David Lechner 9261b8743c proper error handling for firmware too big 2021-01-22 15:58:10 -06:00
David Lechner 4707b77135 proper error handling for compiler error 2021-01-22 15:58:10 -06:00
David Lechner e229f08ffd switch to inline snapshots in tests 2021-01-22 15:58:10 -06:00
David Lechner b1efa04947 proper error handling for mpy-cross ABI version 2021-01-22 15:58:10 -06:00
David Lechner 95652a5eb2 Merge pull request #253 from pybricks/dlech
UI and firmware updates
2021-01-22 10:40:19 -06:00
David Lechner 9551bdc7f0 Pybricks firmware v3.0.0b1 2021-01-22 10:35:11 -06:00
David Lechner caacaad341 use recursive partial so we don't have to use "as" 2021-01-22 10:35:11 -06:00