Commit 21d13ef4 authored by wujing's avatar wujing

fix the frame compute

parent b878b154
...@@ -36,7 +36,7 @@ extern uint16_t sf_ahead; ...@@ -36,7 +36,7 @@ extern uint16_t sf_ahead;
void add_sf(uint16_t *frameP, uint16_t *subframeP, int offset) void add_sf(uint16_t *frameP, uint16_t *subframeP, int offset)
{ {
*frameP = *frameP + ((*subframeP + offset) / 10); *frameP = (*frameP + ((*subframeP + offset) / 10))%1024;
*subframeP = ((*subframeP + offset) % 10); *subframeP = ((*subframeP + offset) % 10);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment