@libs-scripts-mep/grav-fw-pvi 3.0.1 → 3.1.0
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
|
@@ -187,7 +187,7 @@ export default class GravaFW {
|
|
|
187
187
|
FWLink.PVIEventObserver.remove(id)
|
|
188
188
|
clearTimeout(timeOutGravacao)
|
|
189
189
|
|
|
190
|
-
resolve({ success:
|
|
190
|
+
resolve({ success: false, msg: `Gravador não respondeu`, dirProject: dirProject })
|
|
191
191
|
|
|
192
192
|
} else if (param[0].includes(`Error: No project file specifed.`)) {
|
|
193
193
|
|
|
@@ -196,6 +196,13 @@ export default class GravaFW {
|
|
|
196
196
|
|
|
197
197
|
resolve({ success: false, msg: `Projeto informado é inválido`, dirProject: dirProject })
|
|
198
198
|
|
|
199
|
+
} else if (param[0].includes(`A framing error occurred while receiving data`)) {
|
|
200
|
+
|
|
201
|
+
FWLink.PVIEventObserver.remove(id)
|
|
202
|
+
clearTimeout(timeOutGravacao)
|
|
203
|
+
|
|
204
|
+
resolve({ success: false, msg: `Falha ao receber dados do microcontrolador`, dirProject: dirProject })
|
|
205
|
+
|
|
199
206
|
}
|
|
200
207
|
|
|
201
208
|
}
|