Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 59b7b76

Browse files
author
Jarkko Paso
committed
FHSS: Removed massive trace flags
1 parent 60dfccb commit 59b7b76

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

source/Service_Libs/fhss/fhss.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
#include <string.h>
3232

3333
#define TRACE_GROUP "fhss"
34-
// Uncomment this to get timestamped output on superframe events.
35-
// Note: the result may be massive, as there will be dozens or hundreds of lines of trace per second.
36-
// #define FHSS_MASSIVE_TRACE
3734

3835
// TODO: create linked list
3936
// FHSS object pointer
@@ -436,11 +433,6 @@ void fhss_superframe_handler(const fhss_api_t *fhss_api, uint16_t delay)
436433
} else {
437434
// bump up the superframe counter
438435
fhss_structure->current_superframe++;
439-
440-
#ifdef FHSS_MASSIVE_TRACE
441-
tr_debug("%"PRIu32": handler, super: %"PRIu8,
442-
fhss_structure->fhss_api->read_timestamp(fhss_structure->fhss_api), fhss_structure->current_superframe);
443-
#endif
444436
}
445437
if ((fhss_structure->send_synch_info_on_next_broadcast_channel == true) && (fhss_is_current_channel_broadcast(fhss_structure) == true)) {
446438
/* Randomize sending superframe of synchronization frame:
@@ -701,12 +693,6 @@ int fhss_sync_with_beacon(fhss_structure_t *fhss_structure,
701693
}
702694
fhss_stats_update(fhss_structure, STATS_FHSS_SYNCH_INTERVAL, fhss_structure->synch_interval / 1000);
703695
fhss_beacon_periodic_start(fhss_structure, fhss_structure->synch_interval + beacon_interval_random);
704-
705-
#ifdef FHSS_MASSIVE_TRACE
706-
tr_debug("start timer, time now: %"PRIu32", sfr: %"PRIu8", ch-ind: %"PRIu8", time after: %"PRIu32,
707-
fhss_structure->fhss_api->read_timestamp(fhss_structure->fhss_api), fhss_structure->current_superframe,
708-
payload->channel_index, time_to_next_superframe);
709-
#endif
710696
}
711697
// Our hop has changed, needs to inform possible children by sending Beacon
712698
if ((own_hop_tmp != 0) && (own_hop_tmp != fhss_structure->own_hop)) {

source/Service_Libs/fhss/fhss_channel.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,6 @@ bool fhss_change_to_next_channel(fhss_structure_t *fhss_structure)
138138
channel_index_tmp = fhss_add_channel_list_counter(channel_index_tmp, fhss_structure->number_of_channels, fhss_structure->channel_list_counter, fhss_structure->fhss_scramble_table);
139139
next_channel = channel_list_get_channel(fhss_structure->fhss_configuration.channel_mask, channel_index_tmp);
140140

141-
#ifdef FHSS_MASSIVE_TRACE
142-
tr_debug("%"PRIu32": update, frame: %"PRIu8", channel: %d",
143-
fhss_structure->platform_functions.fhss_get_timestamp(fhss_structure->fhss_api), fhss_structure->current_superframe,
144-
next_channel);
145-
#endif
146141
fhss_structure->rx_channel = next_channel;
147142
#ifdef FHSS_CHANNEL_DEBUG
148143
if (fhss_is_current_channel_broadcast(fhss_structure) == true) {

0 commit comments

Comments
 (0)