Add serial support over webusb (#975)

* Add serial support over webusb

* Disable DAPLink serial on older firmware

* Disable sendMany - doesn't work with hidbridge at the moment
This commit is contained in:
Michał Moskal
2018-07-27 13:28:58 -07:00
committed by GitHub
parent 05aa56fe21
commit 7191bb60eb
2 changed files with 61 additions and 5 deletions

2
external/dapjs.js vendored
View File

@ -2397,7 +2397,7 @@ var CMSISDAP = (function () {
case 6 /* DAP_TRANSFER_BLOCK */:
break;
default:
if (buf[1] !== 0) {
if (op < 0x80 && buf[1] !== 0) {
throw new Error("Bad status for " + op + " -> " + buf[1]);
}
}