mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
fix lint error
This commit is contained in:
committed by
David Lechner
parent
8a90acde8b
commit
0171255be9
@@ -26,10 +26,13 @@ jobs:
|
|||||||
${{ runner.os }}-yarn-
|
${{ runner.os }}-yarn-
|
||||||
- name: Run yarn install
|
- name: Run yarn install
|
||||||
run: |
|
run: |
|
||||||
echo "//npm.pkg.github.com/:_authToken=$TOKEN" >> .npmrc
|
echo "//npm.pkg.github.com/:_authToken=$TOKEN" >> $HOME/.npmrc
|
||||||
yarn install
|
yarn install
|
||||||
env:
|
env:
|
||||||
TOKEN: ${{ secrets.privateToken }}
|
TOKEN: ${{ secrets.privateToken }}
|
||||||
|
- run: |
|
||||||
|
yarn lint
|
||||||
|
git diff --exit-code
|
||||||
- run: yarn test
|
- run: yarn test
|
||||||
- run: yarn build
|
- run: yarn build
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
|
|||||||
+3
-2
@@ -57,12 +57,13 @@ export function downloadAndRun(data: ArrayBuffer): HubThunkAction {
|
|||||||
// TODO: might need to flush checksum queue here
|
// TODO: might need to flush checksum queue here
|
||||||
|
|
||||||
// first send payload size as big-endian 32-bit integer
|
// first send payload size as big-endian 32-bit integer
|
||||||
const size_checksum = getChecksum();
|
const checksum = getChecksum();
|
||||||
const sizeBuf = new Uint8Array(4);
|
const sizeBuf = new Uint8Array(4);
|
||||||
const sizeView = new DataView(sizeBuf.buffer);
|
const sizeView = new DataView(sizeBuf.buffer);
|
||||||
sizeView.setUint32(0, data.byteLength, true);
|
sizeView.setUint32(0, data.byteLength, true);
|
||||||
await dispatch(write(sizeBuf));
|
await dispatch(write(sizeBuf));
|
||||||
console.log(await size_checksum);
|
// TODO: verify checksum
|
||||||
|
console.log(await checksum);
|
||||||
|
|
||||||
// Then send payload in 100 byte chunks waiting for checksum after
|
// Then send payload in 100 byte chunks waiting for checksum after
|
||||||
// each chunk
|
// each chunk
|
||||||
|
|||||||
Reference in New Issue
Block a user