Skip to content

Commit f05b46a

Browse files
authored
typo: 删除sense-watcher显示修复的重复以及改掉错误的注释描述 (#417)
1 parent e486d8e commit f05b46a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

main/boards/sensecap-watcher/sensecap_watcher.cc

+1-6
Original file line numberDiff line numberDiff line change
@@ -255,18 +255,13 @@ class SensecapWatcher : public WifiBoard {
255255
.emoji_font = font_emoji_64_init(),
256256
});
257257

258-
// 使每次刷新的行数是4的倍数,防止花屏
258+
// 使每次刷新的起始列数索引是4的倍数且列数总数是4的倍数,以满足SPD2010的要求
259259
lv_display_add_event_cb(lv_display_get_default(), [](lv_event_t *e) {
260260
lv_area_t *area = (lv_area_t *)lv_event_get_param(e);
261261
uint16_t x1 = area->x1;
262262
uint16_t x2 = area->x2;
263263
// round the start of area down to the nearest 4N number
264264
area->x1 = (x1 >> 2) << 2;
265-
// round the start of area down to the nearest 4N number
266-
area->x1 = (x1 >> 2) << 2;
267-
268-
// round the end of area up to the nearest 4M+3 number
269-
area->x2 = ((x2 >> 2) << 2) + 3;
270265
// round the end of area up to the nearest 4M+3 number
271266
area->x2 = ((x2 >> 2) << 2) + 3;
272267
}, LV_EVENT_INVALIDATE_AREA, NULL);

0 commit comments

Comments
 (0)