Fixed compiler warning for timer size.

This commit is contained in:
skarg
2011-07-05 19:58:42 +00:00
parent 19a77ba46e
commit 17def5b2ac
+2 -9
View File
@@ -256,17 +256,10 @@ static void packet_statistics_clear(
Invalid_Frame_Count = 0; Invalid_Frame_Count = 0;
} }
static uint16_t Timer_Silence( static uint32_t Timer_Silence(
void) void)
{ {
uint32_t delta_time = 0; return timer_milliseconds(TIMER_SILENCE);
delta_time = timer_milliseconds(TIMER_SILENCE);
if (delta_time > 0xFFFF) {
delta_time = 0xFFFF;
}
return (uint16_t) delta_time;
} }
static void Timer_Silence_Reset( static void Timer_Silence_Reset(