We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fd227e commit c87021fCopy full SHA for c87021f
src/daplink/index.ts
@@ -38,10 +38,6 @@ const DEFAULT_SERIAL_DELAY = 100;
38
* @hidden
39
*/
40
const DEFAULT_PAGE_SIZE = 62;
41
-/**
42
- * @hidden
43
- */
44
-const SERIAL_VENDOR_CODE = 131;
45
46
/**
47
* DAPLink Class
@@ -214,7 +210,7 @@ export class DAPLink extends CmsisDAP {
214
210
}
215
211
216
212
// First byte contains the vendor code
217
- if (serialData.getUint8(0) !== SERIAL_VENDOR_CODE) {
213
+ if (serialData.getUint8(0) !== DAPLinkSerial.READ) {
218
return undefined;
219
220
0 commit comments