@libs-scripts-mep/grav-fw-pvi 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/grav-fw-pvi.js +8 -1
- package/package.json +1 -1
package/grav-fw-pvi.js
CHANGED
|
@@ -208,6 +208,13 @@ export default class GravaFW {
|
|
|
208
208
|
|
|
209
209
|
resolve({ success: false, msg: `Falha ao receber dados do microcontrolador`, dirProject: dirProject })
|
|
210
210
|
|
|
211
|
+
} else if (param[0].includes(`The device is not responding`)) {
|
|
212
|
+
|
|
213
|
+
FWLink.PVIEventObserver.remove(id)
|
|
214
|
+
clearTimeout(timeOutGravacao)
|
|
215
|
+
|
|
216
|
+
resolve({ success: false, msg: `Controlador nao responde ao gravador`, dirProject: dirProject })
|
|
217
|
+
|
|
211
218
|
}
|
|
212
219
|
|
|
213
220
|
}
|
|
@@ -261,7 +268,7 @@ export default class GravaFW {
|
|
|
261
268
|
return new Promise((resolve) => {
|
|
262
269
|
|
|
263
270
|
FWLink.runInstructionS("JLINK7.init", []) // Inicializa o JLink
|
|
264
|
-
|
|
271
|
+
|
|
265
272
|
let logGravacao = ""
|
|
266
273
|
|
|
267
274
|
const id = FWLink.PVIEventObserver.add((msg, param) => {
|