config-editor-base 2.0.9 → 2.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/dist/index.js CHANGED
@@ -436,7 +436,11 @@ var resetLocalSchemaList = function resetLocalSchemaList() {
436
436
  };
437
437
  var checkConfigTransmitPeriodDelay = function checkConfigTransmitPeriodDelay(content) {
438
438
  return function (dispatch) {
439
+ console.log("We get here right?");
440
+
439
441
  for (var i = 1; i < 3; i++) {
442
+ console.log("Check contents", content["can_" + i], content["can_" + i].transmit);
443
+
440
444
  if (content["can_" + i].transmit != undefined) {
441
445
  var transmitList = content["can_" + i].transmit;
442
446
  var transmitListFiltered = transmitList.filter(function (e) {
@@ -458,10 +462,10 @@ var checkConfigTransmitMonitoring = function checkConfigTransmitMonitoring(conte
458
462
  return function (dispatch) {
459
463
  for (var i = 1; i < 3; i++) {
460
464
  if (content["can_" + i].transmit != undefined && content["can_" + i].phy != undefined && content["can_" + i].phy.mode != undefined && content["can_" + i].transmit.length > 0) {
461
- if (content["can_" + i].phy.mode == 2) {
465
+ if (content["can_" + i].phy.mode != 0) {
462
466
  dispatch(set({
463
467
  type: "warning",
464
- message: "Your CAN CH" + i + " has a non-empty transmit list, but the mode is set to Monitoring. Note that the device will not transmit any messages unless the mode is set to Normal",
468
+ message: "Your CAN CH" + i + " has a non-empty transmit list, but the device will not transmit any messages unless the mode is set to Normal.",
465
469
  autoClear: false
466
470
  }));
467
471
  }