Skip to content

Commit

Permalink
fix st7920 bug (bigtreetech#714)
Browse files Browse the repository at this point in the history
fix st7920 bugs after bigtreetech#705
  • Loading branch information
Msq001 authored May 25, 2020
1 parent 9218d83 commit dcf4ddf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions TFT/src/User/API/UI/ST7920_Simulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,10 @@ void ST7920_ParseRecv(u8 val)
{
st7920_reg.ctrl_status = (ST7920_CTRL_STATUS)val;
rcvIndex = 0;
st7920.address_is_y = 1;
st7920_reg.cgram = 0;
if (st7920_reg.ctrl_status == ST7920_WDATA) {
st7920.address_is_y = 1;
st7920_reg.cgram = 0;
}
}
else
{
Expand Down

0 comments on commit dcf4ddf

Please sign in to comment.