From ea3e9db07d810338ab21cbc33880d531e29564ac Mon Sep 17 00:00:00 2001 From: skarg Date: Wed, 22 Sep 2010 18:31:57 +0000 Subject: [PATCH] Fixed compiler warnings. --- bacnet-stack/ports/bdk-atxx4-mstp/bo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bacnet-stack/ports/bdk-atxx4-mstp/bo.c b/bacnet-stack/ports/bdk-atxx4-mstp/bo.c index 66f09ac7..f0adbdf7 100644 --- a/bacnet-stack/ports/bdk-atxx4-mstp/bo.c +++ b/bacnet-stack/ports/bdk-atxx4-mstp/bo.c @@ -33,6 +33,7 @@ #include "bacenum.h" #include "config.h" /* the custom stuff */ #include "wp.h" +#include "hardware.h" #include "led.h" #include "nvdata.h" #include "bo.h" @@ -198,7 +199,7 @@ BACNET_POLARITY Binary_Output_Polarity( BACNET_POLARITY polarity = POLARITY_NORMAL; if (instance < MAX_BINARY_OUTPUTS) { - polarity = Polarity[instance]; + polarity = (BACNET_POLARITY)Polarity[instance]; } return polarity;