mirror of
https://github.com/chirimen-oh/node-web-gpio.git
synced 2025-02-01 06:38:38 +00:00
Compare commits
2 commits
4b12d332ff
...
fc8f140337
Author | SHA1 | Date | |
---|---|---|---|
|
fc8f140337 | ||
3a5ae2bfba |
2 changed files with 2 additions and 2 deletions
2
index.ts
2
index.ts
|
@ -253,7 +253,7 @@ export class GPIOPort extends EventEmitter {
|
|||
}
|
||||
// biome-ignore lint/suspicious/noExplicitAny:
|
||||
} catch (error: any) {
|
||||
if (this._exportRetry === 0) {
|
||||
if (this._exportRetry < 10) {
|
||||
await sleep(100);
|
||||
console.warn('May be the first time port access. Retry..');
|
||||
++this._exportRetry;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "node-web-gpio",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.2",
|
||||
"description": "GPIO access with Node.js",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
|
Loading…
Add table
Reference in a new issue