Skip to content

Commit

Permalink
cleanup status screen & fix warnning
Browse files Browse the repository at this point in the history
  • Loading branch information
Msq001 authored and Msq001 committed Nov 19, 2019
1 parent 23adf82 commit aa2c9f1
Show file tree
Hide file tree
Showing 5 changed files with 264 additions and 277 deletions.
2 changes: 1 addition & 1 deletion TFT/src/User/API/UI/GUI.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ void RADIO_Select(RADIO *raido, uint8_t select)
}

//
void Scroll_CreatePara(SCROLL * para, uint8_t *pstr ,GUI_RECT *rect)
void Scroll_CreatePara(SCROLL * para, uint8_t *pstr, const GUI_RECT *rect)
{
memset(para,0,sizeof(SCROLL));
para->text = pstr;
Expand Down
4 changes: 2 additions & 2 deletions TFT/src/User/API/UI/GUI.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void RADIO_Select(RADIO *raido, uint8_t select);

typedef struct
{
GUI_RECT *rect;
const GUI_RECT *rect;
uint8_t *text;
uint32_t time;
int16_t off_head;
Expand All @@ -111,7 +111,7 @@ typedef struct
uint16_t maxPixelWidth;
uint8_t has_disp;
}SCROLL;
void Scroll_CreatePara(SCROLL * para, uint8_t *pstr, GUI_RECT *rect);
void Scroll_CreatePara(SCROLL * para, uint8_t *pstr, const GUI_RECT *rect);
void Scroll_DispString(SCROLL * para, uint8_t align);

typedef struct
Expand Down
2 changes: 1 addition & 1 deletion TFT/src/User/Menu/Print.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void scrollFileNameCreate(u8 i)
}
}

void normalNameDisp(GUI_RECT *rect, u8 *name)
void normalNameDisp(const GUI_RECT *rect, u8 *name)
{
if(name == NULL) return;

Expand Down
Loading

0 comments on commit aa2c9f1

Please sign in to comment.