Added some print info the mstpcap demo like packet count, baud rate, and interface.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -45,6 +45,7 @@ extern "C" {
|
||||
|
||||
void RS485_Set_Interface(
|
||||
char *ifname);
|
||||
const char * RS485_Interface(void);
|
||||
|
||||
void RS485_Initialize(
|
||||
void);
|
||||
|
||||
Reference in New Issue
Block a user