From ac9ad2eee2a6c0cbec24a47d7a268d3b37baf086 Mon Sep 17 00:00:00 2001 From: Philippe G Date: Sat, 14 Aug 2021 11:39:24 -0700 Subject: [PATCH] send ANIC when grfe's transitiion is not 'c' - release --- components/squeezelite/displayer.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/squeezelite/displayer.c b/components/squeezelite/displayer.c index f2734e39..03941001 100644 --- a/components/squeezelite/displayer.c +++ b/components/squeezelite/displayer.c @@ -657,7 +657,14 @@ void draw_VU(struct GDS_Device * display, const uint8_t *data, int level, int x, * Process graphic display data */ static void grfe_handler( u8_t *data, int len) { - + struct grfe_packet *pkt = (struct grfe_packet*) data; + + // we don't support transition, simply claim we're done + if (pkt->transition != 'c') { + LOG_INFO("Transition %c requested with offset %hu, param %d", pkt->transition, pkt->offset, pkt->param); + sendANIC(ANIM_TRANSITION); + } + xSemaphoreTake(displayer.mutex, portMAX_DELAY); scroller.active = false;