Added some print info the mstpcap demo like packet count, baud rate, and interface.

This commit is contained in:
skarg
2008-07-30 20:33:00 +00:00
parent df89a0ec2c
commit a81814147a
6 changed files with 39 additions and 8 deletions
+14 -1
View File
@@ -80,7 +80,20 @@ void RS485_Set_Interface(
char *ifname)
{
/* note: expects a constant char, or char from the heap */
RS485_Port_Name = ifname;
if (ifname) {
RS485_Port_Name = ifname;
}
}
/*********************************************************************
* DESCRIPTION: Returns the interface name
* RETURN: none
* ALGORITHM: none
* NOTES: none
*********************************************************************/
const char *RS485_Interface(void)
{
return RS485_Port_Name;
}
/****************************************************************************
+1
View File
@@ -45,6 +45,7 @@ extern "C" {
void RS485_Set_Interface(
char *ifname);
const char * RS485_Interface(void);
void RS485_Initialize(
void);