summaryrefslogtreecommitdiffstats
path: root/src/target/firmware
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-04-07 10:16:54 +0800
committerHarald Welte <laforge@gnumonks.org>2010-04-07 07:35:41 +0200
commit25a8aa87986b5230f788674d219dc26cb5b1aa4f (patch)
tree2b4efcfbb94c8ca9d72242ed0aa34e36ae5b29fc /src/target/firmware
parent9319ac57a1dcd56c634de7c11fd9ff609c9148f7 (diff)
layer1: reset l1s.sb.count to 0 in l1s_rest()
When we reset layer1, the SB counter should be set to 0 again to correctly perform multiple SB l1 tasks without rebooting.
Diffstat (limited to 'src/target/firmware')
-rw-r--r--src/target/firmware/layer1/sync.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/firmware/layer1/sync.c b/src/target/firmware/layer1/sync.c
index 6b87a057..40003440 100644
--- a/src/target/firmware/layer1/sync.c
+++ b/src/target/firmware/layer1/sync.c
@@ -1149,6 +1149,7 @@ void l1s_reset(void)
{
l1s.fb.mode = 0;
l1s.sb.synced = 0;
+ l1s.sb.count = 0;
/* reset scheduler and hardware */
l1s.mf_tasks = 0;