config-editor-base 2.0.9 → 2.1.1
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 +12 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -435,8 +435,13 @@ var resetLocalSchemaList = function resetLocalSchemaList() {
|
|
|
435
435
|
};
|
|
436
436
|
};
|
|
437
437
|
var checkConfigTransmitPeriodDelay = function checkConfigTransmitPeriodDelay(content) {
|
|
438
|
+
console.log("We get outside dispatch?");
|
|
438
439
|
return function (dispatch) {
|
|
440
|
+
console.log("We get here right?");
|
|
441
|
+
|
|
439
442
|
for (var i = 1; i < 3; i++) {
|
|
443
|
+
console.log("Check contents", content["can_" + i], content["can_" + i].transmit);
|
|
444
|
+
|
|
440
445
|
if (content["can_" + i].transmit != undefined) {
|
|
441
446
|
var transmitList = content["can_" + i].transmit;
|
|
442
447
|
var transmitListFiltered = transmitList.filter(function (e) {
|
|
@@ -458,10 +463,10 @@ var checkConfigTransmitMonitoring = function checkConfigTransmitMonitoring(conte
|
|
|
458
463
|
return function (dispatch) {
|
|
459
464
|
for (var i = 1; i < 3; i++) {
|
|
460
465
|
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
|
|
466
|
+
if (content["can_" + i].phy.mode != 0) {
|
|
462
467
|
dispatch(set({
|
|
463
468
|
type: "warning",
|
|
464
|
-
message: "Your CAN CH" + i + " has a non-empty transmit list, but the
|
|
469
|
+
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
470
|
autoClear: false
|
|
466
471
|
}));
|
|
467
472
|
}
|
|
@@ -471,6 +476,11 @@ var checkConfigTransmitMonitoring = function checkConfigTransmitMonitoring(conte
|
|
|
471
476
|
};
|
|
472
477
|
var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, content) {
|
|
473
478
|
return function (dispatch) {
|
|
479
|
+
if (content.can_2 != undefined) {
|
|
480
|
+
console.log("What about here?");
|
|
481
|
+
dispatch(checkConfigTransmitPeriodDelay(content));
|
|
482
|
+
dispatch(checkConfigTransmitMonitoring(content));
|
|
483
|
+
}
|
|
474
484
|
|
|
475
485
|
dispatch(setConfigContent(content));
|
|
476
486
|
var blob = new Blob([JSON.stringify(content, null, 2)], {
|