aboutsummaryrefslogtreecommitdiffstats
path: root/src/cnetz/cnetz.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2020-06-01 21:07:49 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2020-10-29 07:35:50 +0100
commit7189984bbbe0f44888d3cdbc2b68199b1d3714c7 (patch)
tree78da76ba347c98acbf2e65aea38f0c3d8a917eeb /src/cnetz/cnetz.h
parenta98b05beb02ddf3184b513bf1fda91ad1a70945c (diff)
C-Netz: At correct timeslot switch channel mode
Without this, the first BQ(K) message came to early, so that BSA 51 released when receiving ZFZ(K) one frame too early.
Diffstat (limited to 'src/cnetz/cnetz.h')
-rw-r--r--src/cnetz/cnetz.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cnetz/cnetz.h b/src/cnetz/cnetz.h
index 88e621f..f8b0e1a 100644
--- a/src/cnetz/cnetz.h
+++ b/src/cnetz/cnetz.h
@@ -94,8 +94,8 @@ struct cnetz {
int sched_ts; /* current time slot */
int sched_last_ts; /* last timeslot we transmitted, to sync time of the receiver */
int sched_r_m; /* Rufblock (0) / Meldeblock (1) */
- int sched_switch_mode; /* counts slots until mode is switched */
- enum dsp_mode sched_dsp_mode; /* what mode shall be switched to */
+ enum dsp_mode sched_dsp_mode; /* what mode shall be switched to */
+ int sched_dsp_mode_ts; /* time slot when to switch mode (-1 = don't switch) */
/* dsp states */
enum dsp_mode dsp_mode; /* current mode: audio, "Telegramm", .... */