config-editor-base 2.1.5 → 2.1.7

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/dist/index.js CHANGED
@@ -310,12 +310,18 @@ var publicSchemaFiles = function publicSchemaFiles(selectedConfig, schemaAry, co
310
310
  if (contentJSON.can_2 != undefined && contentJSON.connect == undefined && contentJSON.gnss != undefined) {
311
311
  deviceType = "CANedge1 GNSS";
312
312
  }
313
- if (contentJSON.can_2 != undefined && contentJSON.connect != undefined && contentJSON.gnss == undefined) {
313
+ if (contentJSON.can_2 != undefined && contentJSON.connect.wifi != undefined && contentJSON.gnss == undefined) {
314
314
  deviceType = "CANedge2";
315
315
  }
316
- if (contentJSON.can_2 != undefined && contentJSON.connect != undefined && contentJSON.gnss != undefined) {
316
+ if (contentJSON.can_2 != undefined && contentJSON.connect.wifi != undefined && contentJSON.gnss != undefined) {
317
317
  deviceType = "CANedge2 GNSS";
318
318
  }
319
+ if (contentJSON.can_2 != undefined && contentJSON.connect.cellular != undefined && contentJSON.gnss == undefined) {
320
+ deviceType = "CANedge3";
321
+ }
322
+ if (contentJSON.can_2 != undefined && contentJSON.connect.cellular != undefined && contentJSON.gnss != undefined) {
323
+ deviceType = "CANedge3 GNSS";
324
+ }
319
325
  var schemaAryFiltered = schemaAry.filter(function (e) {
320
326
  return e.includes(selectedConfig.substr(7, 5));
321
327
  });
@@ -386,7 +392,7 @@ var checkConfigTransmitPeriodDelay = function checkConfigTransmitPeriodDelay(con
386
392
  for (var i = 1; i < 3; i++) {
387
393
  if (content["can_" + i].transmit != undefined) {
388
394
  var transmitListFiltered = content["can_" + i].transmit.filter(function (e) {
389
- return e.period < e.delay;
395
+ return e.period > 0 && e.period < e.delay;
390
396
  });
391
397
  if (transmitListFiltered.length > 0) {
392
398
  dispatch(set({