Make the firmware updater scripts take module slot parameters instead of I2C addresses. Rename scripts from *slave* to *module*.

This commit is contained in:
László Monda
2017-11-08 18:27:45 +01:00
parent 9a5862b57c
commit 04b43896c5
8 changed files with 98 additions and 65 deletions

View File

@@ -35,7 +35,7 @@ function getBlhostCmd(pid) {
break;
}
return `${__dirname}/blhost/${blhostPath} --usb 0x1d50,${pid}`;
return `${__dirname}/blhost/${blhostPath} --usb 0x1d50,0x${pid.toString(16)}`;
}
function execRetry(command) {