bugfix/compilation_warnings: Fixes minor compilation warnings

Fixes minor compilation warnings in ADC and MQTTFreeRTOS.
This commit is contained in:
Supreet Deshpande
2019-02-23 00:38:07 +05:30
parent db813e29cd
commit e43c3fdf67
2 changed files with 1 additions and 2 deletions

View File

@ -70,7 +70,7 @@ void TimerCountdown(Timer *timer, unsigned int timeout)
int TimerLeftMS(Timer *timer)
{
xTaskCheckForTimeOut(&timer->xTimeOut, &timer->xTicksToWait); /* updates xTicksToWait to the number left */
return (timer->xTicksToWait < 0) ? 0 : (timer->xTicksToWait * portTICK_PERIOD_MS);
return (timer->xTicksToWait <= 0) ? 0 : (timer->xTicksToWait * portTICK_PERIOD_MS);
}