Problem with timers after 10 seconds

Warning removed
This commit is contained in:
bsongis
2012-08-28 10:14:24 +00:00
parent c08302ecb5
commit 0dac1386ec
6 changed files with 39 additions and 37 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ void writeLogs()
{
if (isFunctionActive(FUNC_LOGS) && logDelay > 0) {
uint16_t tmr10ms = get_tmr10ms();
if (lastLogTime == 0 || tmr10ms - lastLogTime >= 10*logDelay) {
if (lastLogTime == 0 || (tmr10ms_t)(tmr10ms - lastLogTime) >= (tmr10ms_t)logDelay*10) {
lastLogTime = tmr10ms;
if (!g_oLogFile.fs) {