@libs-scripts-mep/grav-fw-pvi 2.3.2 → 2.3.3

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 +3 -3
  2. package/package.json +1 -1
package/grav-fw-pvi.js CHANGED
@@ -70,7 +70,7 @@ class GravaFW {
70
70
  resolve({ sucess: false, msg: `Nenhum diretório de firmware ou option byte informado` })
71
71
  }
72
72
 
73
- pvi.runInstructionS("EXEC", [`C:/Program Files (x86)/STMicroelectronics/st_toolset/stvp/STVP_CmdLine.exe`, ObjWriteSTM8.commandLineArguments, "true", "true"])
73
+ pvi.runInstructionS("EXEC", [`${pvi.runInstructionS("GETRESOURCESPATH", [])}\\stvp\\STVP_CmdLine.exe`, ObjWriteSTM8.commandLineArguments, "true", "true"])
74
74
 
75
75
  })
76
76
 
@@ -169,7 +169,7 @@ class GravaFW {
169
169
 
170
170
  }, "sniffer.exec")
171
171
 
172
- pvi.runInstructionS("EXEC", [`${pvi.runInstructionS("GETPVIPATH", [])}/Resources/Renesas/RFPV3.Console.exe`, dirProject, "true", "true"])
172
+ pvi.runInstructionS("EXEC", [`${pvi.runInstructionS("GETRESOURCESPATH", [])}/Renesas/RFPV3.Console.exe`, dirProject, "true", "true"])
173
173
 
174
174
  let timeOutGravacao = setTimeout(() => {
175
175
 
@@ -276,7 +276,7 @@ class GravaFW {
276
276
  tryingPorts.push(splittedInfo[2])
277
277
  UI.setMsg(`Tentando gravar na porta ${splittedInfo[2]}`)
278
278
 
279
- } else if (info.includes("failed to connect") || info.includes("Timed out waiting for packet header")) {
279
+ } else if (info.includes("failed to connect")) {
280
280
  if (tryingPorts.length >= portsFound) {
281
281
  PVI.FWLink.globalDaqMessagesObservers.remove(id)
282
282
  resolve({ sucess: false, msg: "Gravador não conseguiu se conectar com o ESP32" }); return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libs-scripts-mep/grav-fw-pvi",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
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": {