Fix code review
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
#include "bacnet/basic/bbmd6/h_bbmd6.h"
|
||||
#include "bacnet/datalink/arcnet.h"
|
||||
#include "bacnet/datalink/dlmstp.h"
|
||||
#include <strings.h>
|
||||
#include <strings.h> /* for strcasecmp() */
|
||||
|
||||
static enum {
|
||||
DATALINK_NONE = 0,
|
||||
|
||||
@@ -32,13 +32,10 @@ int arcnet_send_pdu(BACNET_ADDRESS *dest, BACNET_NPDU_DATA *npdu_data,
|
||||
return ztest_get_return_value();
|
||||
}
|
||||
|
||||
bool check_arcnet_receive_src = true;
|
||||
|
||||
uint16_t arcnet_receive(BACNET_ADDRESS *src, uint8_t *pdu, uint16_t max_pdu,
|
||||
unsigned timeout)
|
||||
{
|
||||
if (check_arcnet_receive_src)
|
||||
ztest_check_expected_value(src);
|
||||
ztest_check_expected_value(src);
|
||||
ztest_check_expected_value(timeout);
|
||||
ztest_copy_return_data(pdu, max_pdu);
|
||||
return ztest_get_return_value();
|
||||
|
||||
@@ -13,8 +13,6 @@
|
||||
#include <bacnet/datalink/datalink.h>
|
||||
#include "bacnet/apdu.h"
|
||||
|
||||
extern bool check_arcnet_receive_src;
|
||||
|
||||
void bvlc_maintenance_timer(uint16_t seconds)
|
||||
{
|
||||
ztest_check_expected_value(seconds);
|
||||
@@ -50,7 +48,6 @@ static void test_datalink_arcnet(void)
|
||||
BACNET_ADDRESS addr2 = {0};
|
||||
BACNET_NPDU_DATA npdu = {0};
|
||||
|
||||
check_arcnet_receive_src = true;
|
||||
zassert_equal(z_cleanup_mock(), 0, NULL);
|
||||
datalink_set("arcnet");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user