Skip to content

Commit

Permalink
Use new chipsetname_by_ident function
Browse files Browse the repository at this point in the history
This uses the newly introduced function and thus
fixes Github issue #151.

Signed-off-by: Michael Heimpold <[email protected]>
  • Loading branch information
mhei authored and n1000 committed Dec 10, 2021
1 parent 22b337f commit 358dfcf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plc/PLCTopology.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static signed PLCPlatform (struct channel * channel, struct plcstation * plcstat
{
uint32_t ident;
chipset (confirm, & ident);
strncpy (plcstation->hardware, chipsetname (confirm->MDEVICE), sizeof (plcstation->hardware));
strncpy (plcstation->hardware, chipsetname_by_ident (ident, confirm->MDEVICE), sizeof (plcstation->hardware));
strncpy (plcstation->firmware, confirm->MSTRING, sizeof (plcstation->firmware));
return (0);
}
Expand Down
2 changes: 1 addition & 1 deletion plc/Platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ signed Platform (struct channel * channel, const uint8_t device [])
{
uint32_t ident;
chipset (confirm, & ident);
printf (" %s", chipsetname (confirm->MDEVICEID));
printf (" %s", chipsetname_by_ident (ident, confirm->MDEVICEID));
printf (" %s", confirm->MVERSION);
return (0);
}
Expand Down
2 changes: 1 addition & 1 deletion plc/VersionInfo1.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ signed VersionInfo1 (struct plc * plc)
continue;
}
chipset (confirm, & ident);
Display (plc, "%s %s", chipsetname (confirm->MDEVICEID), confirm->MVERSION);
Display (plc, "%s %s", chipsetname_by_ident (ident, confirm->MDEVICEID), confirm->MVERSION);
}
return (0);
}
Expand Down
2 changes: 1 addition & 1 deletion plc/VersionInfo2.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ signed VersionInfo2 (struct plc * plc)
continue;
}
chipset (confirm, & ident);
Display (plc, "%s %s", chipsetname (confirm->MDEVICE_CLASS), confirm->MVERSION);
Display (plc, "%s %s", chipsetname_by_ident (ident, confirm->MDEVICE_CLASS), confirm->MVERSION);
}
return (0);
}
Expand Down

0 comments on commit 358dfcf

Please sign in to comment.