|
31 | 31 | #include <string.h>
|
32 | 32 |
|
33 | 33 | #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 |
37 | 34 |
|
38 | 35 | // TODO: create linked list
|
39 | 36 | // FHSS object pointer
|
@@ -436,11 +433,6 @@ void fhss_superframe_handler(const fhss_api_t *fhss_api, uint16_t delay)
|
436 | 433 | } else {
|
437 | 434 | // bump up the superframe counter
|
438 | 435 | 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 |
444 | 436 | }
|
445 | 437 | if ((fhss_structure->send_synch_info_on_next_broadcast_channel == true) && (fhss_is_current_channel_broadcast(fhss_structure) == true)) {
|
446 | 438 | /* Randomize sending superframe of synchronization frame:
|
@@ -701,12 +693,6 @@ int fhss_sync_with_beacon(fhss_structure_t *fhss_structure,
|
701 | 693 | }
|
702 | 694 | fhss_stats_update(fhss_structure, STATS_FHSS_SYNCH_INTERVAL, fhss_structure->synch_interval / 1000);
|
703 | 695 | 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 |
710 | 696 | }
|
711 | 697 | // Our hop has changed, needs to inform possible children by sending Beacon
|
712 | 698 | if ((own_hop_tmp != 0) && (own_hop_tmp != fhss_structure->own_hop)) {
|
|
0 commit comments