Skip to content

Commit

Permalink
Synchronous reads and better connect/sync logic with more retries. (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesper Lindstrøm Nielsen authored Oct 18, 2021
1 parent 33ec959 commit df305b0
Show file tree
Hide file tree
Showing 4 changed files with 240 additions and 251 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ try {
options.logger.log("connecting...");
await loader.connect();
try {
await loader.sync();
options.logger.log("connected");

options.logger.log("writing device partitions");
const chipName = await loader.chipName();
const macAddr = await loader.macAddr();
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"license": "MIT",
"scripts": {
"build": "tsc -b tsconfig.json",
"watch": "tsc -b tsconfig.json -w",
"clean": "tsc -b tsconfig.json --clean",
"lint": "eslint 'src/*.{js,ts,tsx}' --max-warnings=0",
"doc": "typedoc",
Expand Down
Loading

0 comments on commit df305b0

Please sign in to comment.