Comparing version 2.0.3 to 2.0.4
@@ -82,3 +82,6 @@ "use strict"; | ||
if (cc.iocp && cc.pin) { | ||
iocpToPin[cc.iocp] = cc.pin; | ||
iocpToPin[cc.iocp] = { | ||
device: cc.arduino || '', | ||
pin: cc.pin | ||
}; | ||
pinToIOCP[`${cc.arduino}::${cc.pin}`] = cc.iocp; | ||
@@ -110,4 +113,3 @@ pinToDevice[cc.pin] = cc.arduino || ''; | ||
iocpClient.addVariableSubscriptions(iocpVariableSubscriptions, (iocpVariable, value) => __awaiter(void 0, void 0, void 0, function* () { | ||
const pin = iocpToPin[iocpVariable]; | ||
const device = pinToDevice[pin]; | ||
const { device, pin } = iocpToPin[iocpVariable]; | ||
if (!pin || !device) { | ||
@@ -114,0 +116,0 @@ return; |
{ | ||
"name": "lba-cli", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"author": "Lebronaire", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/lebronaire/flight-control-system/tree/main/packages/cli", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
100616
1616