mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-22 01:27:11 +08:00
Merge branch 'bugfix/compilation_warnings' into 'master'
bugfix/compilation_warnings: Fixes minor compilation warnings See merge request sdk/ESP8266_RTOS_SDK!794
This commit is contained in:
@ -25,7 +25,6 @@
|
|||||||
#define ENTER_CRITICAL() portENTER_CRITICAL()
|
#define ENTER_CRITICAL() portENTER_CRITICAL()
|
||||||
#define EXIT_CRITICAL() portEXIT_CRITICAL()
|
#define EXIT_CRITICAL() portEXIT_CRITICAL()
|
||||||
|
|
||||||
static const char *TAG = "adc";
|
|
||||||
|
|
||||||
#define ADC_CHECK(a, str, ret_val) \
|
#define ADC_CHECK(a, str, ret_val) \
|
||||||
if (!(a)) { \
|
if (!(a)) { \
|
||||||
|
@ -70,7 +70,7 @@ void TimerCountdown(Timer *timer, unsigned int timeout)
|
|||||||
int TimerLeftMS(Timer *timer)
|
int TimerLeftMS(Timer *timer)
|
||||||
{
|
{
|
||||||
xTaskCheckForTimeOut(&timer->xTimeOut, &timer->xTicksToWait); /* updates xTicksToWait to the number left */
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user