config-editor-base 2.7.9 → 2.8.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 +16 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +16 -0
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1167,6 +1167,20 @@ var checkGNSSEstimate = function checkGNSSEstimate(content) {
|
|
|
1167
1167
|
}
|
|
1168
1168
|
};
|
|
1169
1169
|
};
|
|
1170
|
+
var checkCANmodMonitoringMode = function checkCANmodMonitoringMode(content) {
|
|
1171
|
+
return function (dispatch) {
|
|
1172
|
+
var _content$phy, _content$phy$can, _content$phy$can$phy;
|
|
1173
|
+
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) {
|
|
1174
|
+
if (content.phy.can.phy.mode !== 0) {
|
|
1175
|
+
dispatch(set({
|
|
1176
|
+
type: "warning",
|
|
1177
|
+
message: "Your CANmod primary CAN bus mode must be set to 'Normal' if you want the CANmod to output CAN messages",
|
|
1178
|
+
autoClear: false
|
|
1179
|
+
}));
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
};
|
|
1183
|
+
};
|
|
1170
1184
|
var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, content) {
|
|
1171
1185
|
return function (dispatch) {
|
|
1172
1186
|
if (content.can_2 != undefined) {
|
|
@@ -1193,6 +1207,7 @@ var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, conte
|
|
|
1193
1207
|
dispatch(checkIncorrectRoamingSuperSIM(content));
|
|
1194
1208
|
dispatch(checkConfigControlSignalZeroScalingFactor(content));
|
|
1195
1209
|
}
|
|
1210
|
+
dispatch(checkCANmodMonitoringMode(content));
|
|
1196
1211
|
dispatch(setConfigContent(content));
|
|
1197
1212
|
var blob = new Blob([JSON.stringify(content, null, 2)], {
|
|
1198
1213
|
type: "text/json"
|
|
@@ -1311,6 +1326,7 @@ var actions = {
|
|
|
1311
1326
|
checkIncorrectAPNSpaces: checkIncorrectAPNSpaces,
|
|
1312
1327
|
checkFileSplitValue: checkFileSplitValue,
|
|
1313
1328
|
checkGNSSEstimate: checkGNSSEstimate,
|
|
1329
|
+
checkCANmodMonitoringMode: checkCANmodMonitoringMode,
|
|
1314
1330
|
saveUpdatedConfiguration: saveUpdatedConfiguration,
|
|
1315
1331
|
setUpdatedFormData: setUpdatedFormData,
|
|
1316
1332
|
setUpdatedFormDataValue: setUpdatedFormDataValue,
|