From c0b54d06bddcbd4652db38709b77e63f589f3358 Mon Sep 17 00:00:00 2001 From: skarg Date: Mon, 12 Nov 2012 23:16:15 +0000 Subject: [PATCH] Moved around some print statements to be more useful. --- bacnet-stack/ports/win32/dlmstp.c | 8 +++----- bacnet-stack/ports/win32/rs485.c | 3 +++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bacnet-stack/ports/win32/dlmstp.c b/bacnet-stack/ports/win32/dlmstp.c index 7eee7655..8bedf58e 100644 --- a/bacnet-stack/ports/win32/dlmstp.c +++ b/bacnet-stack/ports/win32/dlmstp.c @@ -73,13 +73,13 @@ static uint8_t Tusage_timeout = 50; /* Timer that indicates line silence - and functions */ static uint32_t Timer_Silence( - void) + void * pArg) { return timer_milliseconds(TIMER_SILENCE); } static void Timer_Silence_Reset( - void) + void * pArg) { timer_reset(TIMER_SILENCE); } @@ -259,6 +259,7 @@ uint16_t MSTP_Put_Receive( Receive_Packet.pdu_len = mstp_port->DataLength; Receive_Packet.ready = true; rc = ReleaseSemaphore(Receive_Packet_Flag, 1, NULL); + (void)rc; } return pdu_len; @@ -598,9 +599,6 @@ bool dlmstp_init( timer_init(); if (ifname) { RS485_Set_Interface(ifname); -#if PRINT_ENABLED - fprintf(stderr, "MS/TP Interface: %s\n", ifname); -#endif } RS485_Initialize(); MSTP_Port.InputBuffer = &RxBuffer[0]; diff --git a/bacnet-stack/ports/win32/rs485.c b/bacnet-stack/ports/win32/rs485.c index 8e884df2..8216f597 100644 --- a/bacnet-stack/ports/win32/rs485.c +++ b/bacnet-stack/ports/win32/rs485.c @@ -254,6 +254,9 @@ void RS485_Initialize( RS485_Print_Error(); } RS485_Configure_Status(); +#if PRINT_ENABLED + fprintf(stderr, "RS485 Interface: %s\n", RS485_Port_Name); +#endif atexit(RS485_Cleanup);