• Announcements

    • bluehash

      Forum Upgrade   03/11/2017

      Hello Everyone, Thanks for being patient while the forums were being fixed and upgraded. Please see details and report issues in this thread. Thanks!
Sign in to follow this  
Followers 0
Synoptic

parameter not passing properly ?

3 posts in this topic

Hi !

The third parameter of my function, which is an unsigned int, always gets the value of 0 when the function is called, although I passed another value to it.

void writeGraphicToLCD(char *byte, unsigned char transform, unsigned int blocksize)
writeGraphicToLCD(testBlock2, NONE, 8);

I am pulling the hair of my head trying to figure why it is doing this.

 

Share this post


Link to post
Share on other sites

Maybe you could post the entire code?  This snippet tells us nothing.

Going from C89 to C99 fixed the issue.

Share this post


Link to post
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
Sign in to follow this  
Followers 0