Compare commits

..

No commits in common. "fc8f14033756c64d0ede388749a5919039a7e3eb" and "4b12d332ff75a5ef3f5afb4a4078a9ac0e38b0a7" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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",