From 889b494c3f602d9b7d88112191e7bb35ea35c6e6 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Fri, 7 Feb 2020 13:53:11 +0900 Subject: [PATCH] use GPIO to correct OperationError --- src/gpio.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpio.ts b/src/gpio.ts index e0465cf..4ecda4d 100644 --- a/src/gpio.ts +++ b/src/gpio.ts @@ -37,7 +37,7 @@ export class GPIO extends GPIOPort { } export function gpio(pin: number) { - return new GPIOPort(pin); + return new GPIO(pin); } export default gpio;