Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Commit

Permalink
decode: Handle done
Browse files Browse the repository at this point in the history
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
  • Loading branch information
alyssarosenzweig committed Apr 9, 2021
1 parent 8da40a3 commit dc1f90d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/decode.c
Expand Up @@ -323,6 +323,8 @@ pandecode_cmd(const uint8_t *map, bool verbose)
} else if (map[1] == 0xc0 && map[2] == 0x61) {
DUMP_CL(DRAW, map, "Draw");
return AGX_DRAW_LENGTH;
} else if (map[0] == 0x00 && map[1] == 0x00 && map[2] == 0x00 && map[3] == 0xc0) {
return STATE_DONE;
} else if (map[1] == 0x00 && map[2] == 0x00) {
/* No need to explicitly dump the record */
bl_unpack(map, RECORD, cmd);
Expand Down

0 comments on commit dc1f90d

Please sign in to comment.