Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
fd26dea9
Commit
fd26dea9
authored
Apr 26, 2020
by
firenox89
Committed by
Marcel Stör
Jun 09, 2020
Browse files
fix #2565 by inverting the grb2hsv argcheck condition (#3076)
parent
c50b4789
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/color_utils.c
View file @
fd26dea9
...
@@ -217,7 +217,7 @@ static int cu_grb2hsv(lua_State *L) {
...
@@ -217,7 +217,7 @@ static int cu_grb2hsv(lua_State *L) {
const
int
r
=
luaL_checkint
(
L
,
2
);
const
int
r
=
luaL_checkint
(
L
,
2
);
const
int
b
=
luaL_checkint
(
L
,
3
);
const
int
b
=
luaL_checkint
(
L
,
3
);
luaL_argcheck
(
L
,
g
=
=
r
&&
g
=
=
b
,
1
,
"greyscale value cannot be converted to hsv"
);
luaL_argcheck
(
L
,
g
!
=
r
||
g
!
=
b
,
1
,
"greyscale value cannot be converted to hsv"
);
uint32_t
hsv
=
grb2hsv
(
g
,
r
,
b
);
uint32_t
hsv
=
grb2hsv
(
g
,
r
,
b
);
...
...
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