config-editor-base 2.7.9 → 2.8.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
CHANGED
|
@@ -1170,6 +1170,20 @@ var checkGNSSEstimate = function checkGNSSEstimate(content) {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
};
|
|
1172
1172
|
};
|
|
1173
|
+
var checkCANmodMonitoringMode = function checkCANmodMonitoringMode(content) {
|
|
1174
|
+
return function (dispatch) {
|
|
1175
|
+
var _content$phy, _content$phy$can, _content$phy$can$phy;
|
|
1176
|
+
if (((_content$phy = content.phy) === null || _content$phy === void 0 ? void 0 : (_content$phy$can = _content$phy.can) === null || _content$phy$can === void 0 ? void 0 : (_content$phy$can$phy = _content$phy$can.phy) === null || _content$phy$can$phy === void 0 ? void 0 : _content$phy$can$phy.mode) !== undefined) {
|
|
1177
|
+
if (content.phy.can.phy.mode !== 0) {
|
|
1178
|
+
dispatch(set({
|
|
1179
|
+
type: "warning",
|
|
1180
|
+
message: "Your CANmod primary CAN bus mode must be set to 'Normal' if you want the CANmod to output CAN messages",
|
|
1181
|
+
autoClear: false
|
|
1182
|
+
}));
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
};
|
|
1186
|
+
};
|
|
1173
1187
|
var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, content) {
|
|
1174
1188
|
return function (dispatch) {
|
|
1175
1189
|
if (content.can_2 != undefined) {
|
|
@@ -1196,6 +1210,7 @@ var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, conte
|
|
|
1196
1210
|
dispatch(checkIncorrectRoamingSuperSIM(content));
|
|
1197
1211
|
dispatch(checkConfigControlSignalZeroScalingFactor(content));
|
|
1198
1212
|
}
|
|
1213
|
+
dispatch(checkCANmodMonitoringMode(content));
|
|
1199
1214
|
dispatch(setConfigContent(content));
|
|
1200
1215
|
var blob = new Blob([JSON.stringify(content, null, 2)], {
|
|
1201
1216
|
type: "text/json"
|
|
@@ -1314,6 +1329,7 @@ var actions = {
|
|
|
1314
1329
|
checkIncorrectAPNSpaces: checkIncorrectAPNSpaces,
|
|
1315
1330
|
checkFileSplitValue: checkFileSplitValue,
|
|
1316
1331
|
checkGNSSEstimate: checkGNSSEstimate,
|
|
1332
|
+
checkCANmodMonitoringMode: checkCANmodMonitoringMode,
|
|
1317
1333
|
saveUpdatedConfiguration: saveUpdatedConfiguration,
|
|
1318
1334
|
setUpdatedFormData: setUpdatedFormData,
|
|
1319
1335
|
setUpdatedFormDataValue: setUpdatedFormDataValue,
|