Skip to content

Commit

Permalink
send ANIC when grfe's transitiion is not 'c' - release
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe44 committed Aug 14, 2021
1 parent f38840b commit ac9ad2e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion components/squeezelite/displayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ac9ad2e

Please sign in to comment.