Jump to content
Sign in to follow this  

BUG IN progressbar.c

Recommended Posts

GHandle gwinGProgressbarCreate(GDisplay *g, GProgressbarObject *gs, const GWidgetInit *pInit) {

if (!(gs = (GProgressbarObject *)_gwidgetCreate(g, &gs->w, pInit, &progressbarVMT)))

return 0;

gs->min = 0;

gs->max = 100;

gs->res = 1;

gs->pos = 0;

gs->delay = 0;

gtimerInit(&gs->gt);//GTimer need init, otherwise call gwinProgressbarStop will crash, my MCU is STM32F103VT


gwinSetVisible((GHandle)gs, pInit->g.show);

return (GHandle)gs;


Share this post

Link to post
Share on other sites
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...