Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
fcd734a1
Commit
fcd734a1
authored
Nov 28, 2018
by
me-no-dev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some fixes found by gcc 8
parent
aa030e04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
cores/esp32/esp32-hal-i2c.c
cores/esp32/esp32-hal-i2c.c
+1
-1
cores/esp32/esp32-hal-time.c
cores/esp32/esp32-hal-time.c
+3
-3
No files found.
cores/esp32/esp32-hal-i2c.c
View file @
fcd734a1
...
...
@@ -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
;
...
...
cores/esp32/esp32-hal-time.c
View file @
fcd734a1
...
...
@@ -17,9 +17,9 @@
static
void
setTimeZone
(
long
offset
,
int
daylight
)
{
char
cst
[
1
6
]
=
{
0
};
char
cdt
[
1
6
]
=
"DST"
;
char
tz
[
3
2
]
=
{
0
};
char
cst
[
1
7
]
=
{
0
};
char
cdt
[
1
7
]
=
"DST"
;
char
tz
[
3
3
]
=
{
0
};
if
(
offset
%
3600
){
sprintf
(
cst
,
"UTC%ld:%02u:%02u"
,
offset
/
3600
,
abs
((
offset
%
3600
)
/
60
),
abs
(
offset
%
60
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment