Skip to content
Snippets Groups Projects
Commit 8653530c authored by TilCreator's avatar TilCreator
Browse files

Fix code style

parent 88fa7997
Branches
Tags
No related merge requests found
Pipeline #3703 failed
...@@ -76,8 +76,12 @@ int epic_disp_clear(uint16_t color) ...@@ -76,8 +76,12 @@ int epic_disp_clear(uint16_t color)
} }
} }
int epic_disp_pixels(const uint8_t *data, size_t data_length, uint8_t offset_x, uint8_t offset_y) int epic_disp_pixels(
{ const uint8_t *data,
size_t data_length,
uint8_t offset_x,
uint8_t offset_y
) {
int cl = check_lock(); int cl = check_lock();
if (cl < 0) { if (cl < 0) {
......
...@@ -108,11 +108,16 @@ static mp_obj_t mp_display_pixels(size_t n_args, const mp_obj_t *args) ...@@ -108,11 +108,16 @@ static mp_obj_t mp_display_pixels(size_t n_args, const mp_obj_t *args)
} }
if ((bufinfo.len % 4) != 0) { if ((bufinfo.len % 4) != 0) {
mp_raise_msg(&mp_type_AssertionError, "buffer length is not divisible by 4"); mp_raise_msg(
&mp_type_AssertionError,
"buffer length is not divisible by 4"
);
return mp_const_none; return mp_const_none;
} }
int res = epic_disp_pixels((uint8_t*)(bufinfo.buf), bufinfo.len, offset_x, offset_y); int res = epic_disp_pixels(
(uint8_t *)(bufinfo.buf), bufinfo.len, offset_x, offset_y
);
if (res < 0) { if (res < 0) {
mp_raise_OSError(-res); mp_raise_OSError(-res);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment