Jump to content

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

ResetDisplayPos(gs);

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

return (GHandle)gs;

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...