config-editor-base 2.9.8 → 2.9.9
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 +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21826,8 +21826,11 @@ function isObdResponse29Bit(canId) {
|
|
|
21826
21826
|
}
|
|
21827
21827
|
|
|
21828
21828
|
function parseSupportedPids(csvContent) {
|
|
21829
|
-
var
|
|
21830
|
-
|
|
21829
|
+
var parseResult = parseCanFrameCsv(csvContent);
|
|
21830
|
+
if (parseResult.error) {
|
|
21831
|
+
throw new Error(parseResult.error);
|
|
21832
|
+
}
|
|
21833
|
+
var receiveFrames = getReceiveFrames(parseResult.frames);
|
|
21831
21834
|
var obd11BitResponses = receiveFrames.filter(function (f) {
|
|
21832
21835
|
return f.ide === 0 && f.id === '7E8';
|
|
21833
21836
|
});
|
|
@@ -21871,7 +21874,7 @@ function parseSupportedPids(csvContent) {
|
|
|
21871
21874
|
transmitId: use29Bit ? '18DB33F1' : '7DF',
|
|
21872
21875
|
canIdType: use29Bit ? '29bit' : '11bit',
|
|
21873
21876
|
responseCount: relevantResponses.length,
|
|
21874
|
-
totalFrames: frames.length,
|
|
21877
|
+
totalFrames: parseResult.frames.length,
|
|
21875
21878
|
hasMixedIds: hasBothIdTypes,
|
|
21876
21879
|
hasMixedProtocols: hasMixedProtocols,
|
|
21877
21880
|
allProtocolsDetected: Array.from(protocolsDetected),
|