Some fixes found by gcc 8
This commit is contained in:
parent
aa030e044c
commit
fcd734a13c
@ -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;
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user