Skip to content

Commit f4694cd

Browse files
pettaa123Tuppatsch
andauthored
changed incorrect argument naming from cob to idx for build_PDOlist (#173)
Co-authored-by: Tuppatsch <[email protected]>
1 parent d9ca4aa commit f4694cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libEDSsharp/PDOHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,11 @@ public void build_PDOlists()
242242
/// <summary>
243243
/// Look through the OD and register PDO
244244
/// </summary>
245-
/// <param name="startcob">OD index to to start looking from, it will stop after 0x1ff indexes</param>
245+
/// <param name="startIdx">OD index to to start looking from, it will stop after 0x1ff indexes</param>
246246
/// <param name="slots">list to add found pdo into</param>
247-
void build_PDOlist(UInt16 startcob, List<PDOSlot> slots)
247+
void build_PDOlist(UInt16 startIdx, List<PDOSlot> slots)
248248
{
249-
for (UInt16 idx = startcob; idx < startcob + 0x01ff; idx++)
249+
for (UInt16 idx = startIdx; idx < startIdx + 0x01ff; idx++)
250250
{
251251
if (eds.ods.ContainsKey(idx))
252252
{

0 commit comments

Comments
 (0)