Skip to content

Commit 5451b1a

Browse files
author
Jarkko Paso
committed
FHSS unit tests: Updated timestamp callback
1 parent a2997b1 commit 5451b1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/nanostack/unittest/service_libs/fhss/test_fhss.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ static fhss_api_t *test_generate_fhss_api(void)
135135
FHSS.callbacks.read_tx_queue_size = &mac_read_tx_queue_sizes;
136136
FHSS.callbacks.synch_lost_notification = &mac_synch_lost;
137137
FHSS.callbacks.broadcast_notify = &mac_broadcast_notification;
138+
FHSS.callbacks.read_timestamp = &mac_read_phy_timestamp;
138139
test_set_fhss_default_configs();
139140
test_set_platform_api(&FHSS.platform_functions);
140141
fhss_set_callbacks(&FHSS);
@@ -640,7 +641,7 @@ bool test_fhss_beacon_tasklet_func()
640641
uint8_t source_address[8] = {1, 2, 3, 4, 5, 6, 7, 8};
641642
uint8_t synch_info[FHSS_SYNCH_INFO_LENGTH] = {0, 0, 1, 0, 5, 0x86, 0xa0, 0x03, 0xe7, 1, 10, 2, 0, 0, 0, 0, 0, 0, 0xc3, 0x50, 8};
642643
nsdynmemlib_stub.returnCounter = 1;
643-
fhss_common_stub.uint32_value = DEFAULT_TIMESTAMP + (BEACON_INFO_LIFETIME * 1000000);
644+
fhss_callbacks_stub.uint32_value = DEFAULT_TIMESTAMP + (BEACON_INFO_LIFETIME * 1000000);
644645
FHSS.fhss_api->receive_frame(api, DEFAULT_PANID, source_address, DEFAULT_TIMESTAMP, synch_info, FHSS_SYNCH_FRAME);
645646
event.event_type = FHSS_UPDATE_SYNCH_INFO_STORAGE;
646647
event_stub.func_ptr(&event);

0 commit comments

Comments
 (0)