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 authored and GitHub committed 2018-07-27 13:28:58 -07:00
1 parent 05aa56fe21
commit 7191bb60eb
2 files changed
+61 -5

No files matched your search

+1 -1
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]);
}
}