Skip to content

Commit ae40917

Browse files
committed
Merge branch 'bugfix/compilation_warnings' into 'master'
bugfix/compilation_warnings: Fixes minor compilation warnings See merge request sdk/ESP8266_RTOS_SDK!794
2 parents a8957ae + e43c3fd commit ae40917

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

components/esp8266/driver/adc.c

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#define ENTER_CRITICAL() portENTER_CRITICAL()
2626
#define EXIT_CRITICAL() portEXIT_CRITICAL()
2727

28-
static const char *TAG = "adc";
2928

3029
#define ADC_CHECK(a, str, ret_val) \
3130
if (!(a)) { \

components/mqtt/paho/MQTTClient-C/src/FreeRTOS/MQTTFreeRTOS.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void TimerCountdown(Timer *timer, unsigned int timeout)
7070
int TimerLeftMS(Timer *timer)
7171
{
7272
xTaskCheckForTimeOut(&timer->xTimeOut, &timer->xTicksToWait); /* updates xTicksToWait to the number left */
73-
return (timer->xTicksToWait < 0) ? 0 : (timer->xTicksToWait * portTICK_PERIOD_MS);
73+
return (timer->xTicksToWait <= 0) ? 0 : (timer->xTicksToWait * portTICK_PERIOD_MS);
7474
}
7575

7676

0 commit comments

Comments
 (0)