mirror of
https://github.com/chirimen-oh/node-web-gpio.git
synced 2025-02-01 14:48:40 +00:00
Compare commits
No commits in common. "fc8f14033756c64d0ede388749a5919039a7e3eb" and "4b12d332ff75a5ef3f5afb4a4078a9ac0e38b0a7" have entirely different histories.
fc8f140337
...
4b12d332ff
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:
|
// biome-ignore lint/suspicious/noExplicitAny:
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
if (this._exportRetry < 10) {
|
if (this._exportRetry === 0) {
|
||||||
await sleep(100);
|
await sleep(100);
|
||||||
console.warn('May be the first time port access. Retry..');
|
console.warn('May be the first time port access. Retry..');
|
||||||
++this._exportRetry;
|
++this._exportRetry;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "node-web-gpio",
|
"name": "node-web-gpio",
|
||||||
"version": "1.1.2",
|
"version": "1.1.1",
|
||||||
"description": "GPIO access with Node.js",
|
"description": "GPIO access with Node.js",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
|
Loading…
Add table
Reference in a new issue