Modified code to clean up some compiler warnings.
This commit is contained in:
@@ -97,7 +97,7 @@ uint8_t Send_Private_Transfer_Request(
|
||||
block->cMyByte2);
|
||||
len +=
|
||||
encode_application_real(&pt_req_buffer[len], block->fMyReal);
|
||||
characterstring_init_ansi(&bsTemp, block->sMyString);
|
||||
characterstring_init_ansi(&bsTemp, (char *)block->sMyString);
|
||||
len +=
|
||||
encode_application_character_string(&pt_req_buffer[len],
|
||||
&bsTemp);
|
||||
|
||||
@@ -43,11 +43,13 @@ extern bool BIP_Debug;
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* note: define init and cleanup in your ports section */
|
||||
/* note: define init, set_interface, and cleanup in your port */
|
||||
/* on Linux, ifname is eth0, ath0, arc0, and others.
|
||||
on Windows, ifname is the dotted ip address of the interface */
|
||||
bool bip_init(
|
||||
char *ifname);
|
||||
void bip_set_interface(
|
||||
char *ifname);
|
||||
void bip_cleanup(
|
||||
void);
|
||||
|
||||
|
||||
@@ -84,11 +84,6 @@ static DWORD RS485_DTRControl = DTR_CONTROL_DISABLE;
|
||||
RTS_CONTROL_ENABLE, RTS_CONTROL_DISABLE,
|
||||
RTS_CONTROL_HANDSHAKE, RTS_CONTROL_TOGGLE */
|
||||
static DWORD RS485_RTSControl = RTS_CONTROL_DISABLE;
|
||||
/* Ring buffer for incoming bytes, in order to speed up the receiving. */
|
||||
static FIFO_BUFFER Rx_FIFO;
|
||||
/* buffer size needs to be a power of 2 */
|
||||
static uint8_t Rx_Buffer[1 << 12];
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* DESCRIPTION: Change the characters in a string to uppercase
|
||||
@@ -382,7 +377,7 @@ bool RS485_Set_Baud_Rate(
|
||||
* are transmitting with 1 stop bit (some devices receive with
|
||||
* 1 stop bit but effectivly end up transmitting with 2 stop
|
||||
* bits, usually because of synchroisation issues in some UARTs
|
||||
* which mean that if you wait until the serialiser has finished
|
||||
* which mean that if you wait until the serialiser has finished
|
||||
* with the current character and then load the TX buffer it has
|
||||
* to wait until the next bit boundary to start transmitting.
|
||||
* PMcS
|
||||
|
||||
Reference in New Issue
Block a user