Skip to content

Commit

Permalink
fix st7920 bug (#714)
Browse files Browse the repository at this point in the history
fix st7920 bugs after #705
  • Loading branch information
Msq001 committed May 25, 2020
1 parent 5b92d89 commit 9c981c5
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 9c981c5

Please sign in to comment.