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
+8 -1
View File
@@ -92,7 +92,14 @@ 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;
}
}
const char *RS485_Interface(void)
{
return RS485_Port_Name;
}
static void RS485_Print_Error(
+1
View File
@@ -45,6 +45,7 @@ extern "C" {
void RS485_Set_Interface(
char *ifname);
const char * RS485_Interface(void);
void RS485_Initialize(
void);