Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
For coherency with the new buffer name.
Browse files Browse the repository at this point in the history
  • Loading branch information
orzel committed Feb 3, 2022
1 parent 43a1c52 commit beef94e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/led.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ uint8_t dbuf[4];
#define filldisplay(pos,val,dp) { framebuffer[pos]=(uint8_t)(val); if (dp) dot##pos=1;}
#define dotdisplay(pos,dp) { if (dp) dot##pos=1;}

#define updateTmpDisplay() { uint8_t tmp; \
#define syncFramebuffer() { uint8_t tmp; \
tmp=ledtable[framebuffer[0]]; if (dot0) tmp&=0x7F; dbuf[0]=tmp; \
tmp=ledtable[framebuffer[1]]; if (dot1) tmp&=0x7F; dbuf[1]=tmp; \
tmp=ledtable[framebuffer[3]]; if (dot3) tmp&=0x7F; dbuf[3]=tmp; \
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ int main()
#endif

__critical {
updateTmpDisplay();
syncFramebuffer();
}

count++;
Expand Down

0 comments on commit beef94e

Please sign in to comment.