|
@@ -612,12 +612,13 @@ static void grfe_handler( u8_t *data, int len) {
|
|
|
|
|
|
scroller.active = false;
|
|
scroller.active = false;
|
|
|
|
|
|
-
|
|
+
|
|
if ((visu.mode & VISU_ESP32) && !visu.col && visu.row < SB_HEIGHT) {
|
|
if ((visu.mode & VISU_ESP32) && !visu.col && visu.row < SB_HEIGHT) {
|
|
xSemaphoreGive(displayer.mutex);
|
|
xSemaphoreGive(displayer.mutex);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
if (displayer.owned) {
|
|
if (displayer.owned) {
|
|
|
|
|
|
if (displayer.dirty) {
|
|
if (displayer.dirty) {
|
|
@@ -732,9 +733,12 @@ static void grfg_handler(u8_t *data, int len) {
|
|
struct grfg_packet *pkt = (struct grfg_packet*) data;
|
|
struct grfg_packet *pkt = (struct grfg_packet*) data;
|
|
|
|
|
|
LOG_DEBUG("gfrg s:%hu w:%hu (len:%u)", htons(pkt->screen), htons(pkt->width), len);
|
|
LOG_DEBUG("gfrg s:%hu w:%hu (len:%u)", htons(pkt->screen), htons(pkt->width), len);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if ((visu.mode & VISU_ESP32) && !visu.col && visu.row < SB_HEIGHT) return;
|
|
|
|
|
|
xSemaphoreTake(displayer.mutex, portMAX_DELAY);
|
|
xSemaphoreTake(displayer.mutex, portMAX_DELAY);
|
|
-
|
|
+
|
|
|
|
|
|
scroller.width = htons(pkt->width);
|
|
scroller.width = htons(pkt->width);
|
|
scroller.back.width = ((len - sizeof(struct grfg_packet)) * 8) / displayer.height;
|
|
scroller.back.width = ((len - sizeof(struct grfg_packet)) * 8) / displayer.height;
|