diff --git a/src/mcp23008-17.js b/src/mcp23008-17.js index 4632008..96a8d40 100644 --- a/src/mcp23008-17.js +++ b/src/mcp23008-17.js @@ -209,7 +209,7 @@ class MCP23008 extends aggregate(Device, EventEmitter) { async allToggle(port = 'A') { let pins = 255 - await this.writePort('toggle', port) + await this.writePort(pins, 'toggle', port) } async force(pins, port, format) {