diff --git a/bacnet-stack/include/bacdcode.h b/bacnet-stack/include/bacdcode.h index 7663f38d..374d2e05 100644 --- a/bacnet-stack/include/bacdcode.h +++ b/bacnet-stack/include/bacdcode.h @@ -151,6 +151,18 @@ extern "C" { int tag_number, float value); +/* from clause 20.2.7 Encoding of a Double Precision Real Number Value */ +/* and 20.2.1 General Rules for Encoding BACnet Tags */ +/* returns the number of apdu bytes consumed */ +int encode_application_double( + uint8_t * apdu, + double value); + +int encode_context_double( + uint8_t * apdu, + int tag_number, + double value); + /* from clause 20.2.14 Encoding of an Object Identifier Value */ /* and 20.2.1 General Rules for Encoding BACnet Tags */ /* returns the number of apdu bytes consumed */ diff --git a/bacnet-stack/src/bacapp.c b/bacnet-stack/src/bacapp.c index ff286c83..fd4f7937 100644 --- a/bacnet-stack/src/bacapp.c +++ b/bacnet-stack/src/bacapp.c @@ -87,7 +87,6 @@ int bacapp_encode_application_data( #endif #if defined (BACAPP_DOUBLE) case BACNET_APPLICATION_TAG_DOUBLE: - /* FIXME: double is not implemented yet. */ apdu_len = encode_application_double(&apdu[0], value->type.Double); break; @@ -326,7 +325,6 @@ int bacapp_encode_context_data_value( #endif #if defined (BACAPP_DOUBLE) case BACNET_APPLICATION_TAG_DOUBLE: - /* FIXME: double is not implemented yet. */ apdu_len = encode_context_double(&apdu[0], context_tag_number, value->type.Double); diff --git a/bacnet-stack/src/bacdcode.c b/bacnet-stack/src/bacdcode.c index fe0d74f3..1344148b 100644 --- a/bacnet-stack/src/bacdcode.c +++ b/bacnet-stack/src/bacdcode.c @@ -1401,7 +1401,7 @@ int encode_context_real( /* returns the number of apdu bytes consumed */ int encode_application_double( uint8_t * apdu, - float value) + double value) { int len = 0; @@ -1415,7 +1415,7 @@ int encode_application_double( int encode_context_double( uint8_t * apdu, int tag_number, - float value) + double value) { int len = 0;