diff --git a/EDSEditorGUI/DevicePDOView2.cs b/EDSEditorGUI/DevicePDOView2.cs index e6aeb4e..1f8c468 100644 --- a/EDSEditorGUI/DevicePDOView2.cs +++ b/EDSEditorGUI/DevicePDOView2.cs @@ -499,6 +499,12 @@ public void UpdatePDOinfo(bool updatechoices = true) MessageBox.Show(string.Format("Invalid TXPDO mapping parameters in 0x{0:X}!\r\nTrying to map more than the maximum lenght of a CAN message (8 bytes).\r\n\r\nMembers are:\r\n{1}", slot.ConfigurationIndex,toDisplay)); break; } + if ((bitoff + mappingentry.width) <= 0) + { + string toDisplay = string.Join(Environment.NewLine, slot.Mapping); + MessageBox.Show(string.Format("Invalid TXPDO mapping parameters in 0x{0:X}!\r\nTrying to map less than the minimum lenght of a CAN message (0 bytes).\r\n\r\nMembers are:\r\n{1}", slot.ConfigurationIndex, toDisplay)); + break; + } string target = slot.getTargetName(mappingentry.entry); grid1[row + 2, bitoff + INFO_COLS_COUNT] = new SourceGrid.Cells.Cell(target, comboStandard); grid1[row + 2, bitoff + INFO_COLS_COUNT].ColumnSpan = mappingentry.width; diff --git a/README.md b/README.md index 3d13017..bad1fd1 100644 --- a/README.md +++ b/README.md @@ -87,27 +87,6 @@ Collaborators - - - + + + - - + + - -
- - robincornelius -
- robincornelius -
-
- - nimrof -
- nimrof -
-
- - CANopenNode -
- CANopenNode -
-
trojanobelix @@ -249,6 +228,15 @@ Contributors Regelink + + Sl-Alex +
+ Sl-Alex +
+
rgruening @@ -256,8 +244,6 @@ Contributors rgruening
Barzello @@ -293,6 +279,8 @@ Contributors DaMutz
StormOli @@ -300,8 +288,6 @@ Contributors StormOli
possibly-not