@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.
Files changed (2) hide show
  1. package/grav-fw-pvi.js +8 -1
  2. 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: null, msg: `Gravador não respondeu`, dirProject: dirProject })
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libs-scripts-mep/grav-fw-pvi",
3
- "version": "3.0.1",
3
+ "version": "3.1.0",
4
4
  "description": "Auxilia na gravação de microcontroladores por linha de comando através do PVI",
5
5
  "main": "grav-fw-pvi.js",
6
6
  "scripts": {