Removed or #if code that was not embedded friendly when building without an OS.
This commit is contained in:
@@ -32,7 +32,6 @@
|
|||||||
-------------------------------------------
|
-------------------------------------------
|
||||||
####COPYRIGHTEND####*/
|
####COPYRIGHTEND####*/
|
||||||
|
|
||||||
#include <assert.h>
|
|
||||||
#include "bacdcode.h"
|
#include "bacdcode.h"
|
||||||
#include "npdu.h"
|
#include "npdu.h"
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
@@ -211,7 +210,7 @@ void testDevIdPropRef(
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TEST_DEV_ID_PROP_REF
|
#ifdef TEST_DEV_ID_PROP_REF
|
||||||
|
#include <assert.h>
|
||||||
int main(
|
int main(
|
||||||
void)
|
void)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,7 +33,9 @@
|
|||||||
####COPYRIGHTEND####*/
|
####COPYRIGHTEND####*/
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#if PRINT_ENABLED
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#endif
|
||||||
#include "bacprop.h"
|
#include "bacprop.h"
|
||||||
|
|
||||||
PROP_TAG_DATA bacnet_object_device_property_tag_map[] = {
|
PROP_TAG_DATA bacnet_object_device_property_tag_map[] = {
|
||||||
@@ -107,7 +109,9 @@ signed bacprop_property_tag(
|
|||||||
bacprop_tag_by_index_default
|
bacprop_tag_by_index_default
|
||||||
(bacnet_object_device_property_tag_map, prop, -1);
|
(bacnet_object_device_property_tag_map, prop, -1);
|
||||||
default:
|
default:
|
||||||
|
#if PRINT_ENABLED
|
||||||
fprintf(stderr, "Unsupported object type");
|
fprintf(stderr, "Unsupported object type");
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
-------------------------------------------
|
-------------------------------------------
|
||||||
####COPYRIGHTEND####*/
|
####COPYRIGHTEND####*/
|
||||||
|
|
||||||
#include <assert.h>
|
|
||||||
#include "bacdcode.h"
|
#include "bacdcode.h"
|
||||||
#include "npdu.h"
|
#include "npdu.h"
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
@@ -306,7 +305,7 @@ int bacapp_encode_property_state(
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
assert(0);
|
/* FIXME: assert(0); - return a negative len? */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -421,7 +420,7 @@ void testPropStates(
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TEST_PROP_STATES
|
#ifdef TEST_PROP_STATES
|
||||||
|
#include <assert.h>
|
||||||
int main(
|
int main(
|
||||||
void)
|
void)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ int getevent_ack_encode_apdu_init(
|
|||||||
{
|
{
|
||||||
int apdu_len = 0; /* total length of the apdu, return value */
|
int apdu_len = 0; /* total length of the apdu, return value */
|
||||||
|
|
||||||
if (apdu) {
|
if (apdu && (max_apdu >= 4)) {
|
||||||
apdu[0] = PDU_TYPE_COMPLEX_ACK; /* complex ACK service */
|
apdu[0] = PDU_TYPE_COMPLEX_ACK; /* complex ACK service */
|
||||||
apdu[1] = invoke_id; /* original invoke id from request */
|
apdu[1] = invoke_id; /* original invoke id from request */
|
||||||
apdu[2] = SERVICE_CONFIRMED_GET_EVENT_INFORMATION;
|
apdu[2] = SERVICE_CONFIRMED_GET_EVENT_INFORMATION;
|
||||||
|
|||||||
Reference in New Issue
Block a user