Skip to content

Commit

Permalink
Some fixes found by gcc 8
Browse files Browse the repository at this point in the history
  • Loading branch information
me-no-dev committed Nov 27, 2018
1 parent aa030e0 commit fcd734a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cores/esp32/esp32-hal-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ i2c_err_t i2cProcQueue(i2c_t * i2c, uint32_t *readCount, uint16_t timeOutMillis)
if(tdq->ctrl.addrReq ==2) { // 10bit address
taddr =((tdq->ctrl.addr >> 7) & 0xFE)
|tdq->ctrl.mode;
taddr = (taddr <<8) || (tdq->ctrl.addr&0xFF);
taddr = (taddr <<8) | (tdq->ctrl.addr&0xFF);
} else { // 7bit address
taddr = ((tdq->ctrl.addr<<1)&0xFE)
|tdq->ctrl.mode;
Expand Down
6 changes: 3 additions & 3 deletions cores/esp32/esp32-hal-time.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

static void setTimeZone(long offset, int daylight)
{
char cst[16] = {0};
char cdt[16] = "DST";
char tz[32] = {0};
char cst[17] = {0};
char cdt[17] = "DST";
char tz[33] = {0};

if(offset % 3600){
sprintf(cst, "UTC%ld:%02u:%02u", offset / 3600, abs((offset % 3600) / 60), abs(offset % 60));
Expand Down

0 comments on commit fcd734a

Please sign in to comment.