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;
}
static uint16_t Timer_Silence(
static uint32_t Timer_Silence(
void)
{
uint32_t delta_time = 0;
delta_time = timer_milliseconds(TIMER_SILENCE);
if (delta_time > 0xFFFF) {
delta_time = 0xFFFF;
}
return (uint16_t) delta_time;
return timer_milliseconds(TIMER_SILENCE);
}
static void Timer_Silence_Reset(