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