File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -84,13 +84,6 @@ bool test_fhss_allocate_instance()
84
84
if (NULL == fhss_ptr ) {
85
85
return false;
86
86
}
87
- // Test event timer cb with invalid timer id
88
- fhss_ptr -> callbacks .tx_poll = & mac_poll_tx_queue ;
89
- ns_timer_stub .cb (-1 , 10 );
90
- // Test event timer cb with random timer id
91
- ns_timer_stub .cb (1 , 10 );
92
- // Test event timer cb with valid timer id
93
- ns_timer_stub .cb (0 , 10 );
94
87
// Free allocated instance
95
88
fhss_free_instance (& fhss_api );
96
89
Original file line number Diff line number Diff line change @@ -55,6 +55,15 @@ fhss_structure_t *fhss_get_object_with_api(const fhss_api_t *fhss_api)
55
55
return & fhss_common_stub .fhss_struct ;
56
56
}
57
57
58
+ fhss_structure_t * fhss_get_object_with_timer_id (const int8_t timer_id )
59
+ {
60
+ if (fhss_common_stub .bool_value == false) {
61
+ return NULL ;
62
+ }
63
+ fhss_common_stub .fhss_struct .fhss_event_timer = timer_id ;
64
+ return & fhss_common_stub .fhss_struct ;
65
+ }
66
+
58
67
void fhss_clear_active_event (fhss_structure_t * fhss_structure , uint8_t event_type )
59
68
{
60
69
You can’t perform that action at this time.
0 commit comments