Jump to content


Photo

parameter not passing properly ?


  • Please log in to reply
2 replies to this topic

#1 Synoptic

Synoptic

    Member

  • Members
  • PipPip
  • 10 posts

Posted 06 January 2017 - 03:12 AM

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.

 



#2 Rickta59

Rickta59

    Level 4

  • Global Moderators
  • 999 posts
  • LocationEastern NC


Posted 06 January 2017 - 04:05 PM

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



#3 Synoptic

Synoptic

    Member

  • Members
  • PipPip
  • 10 posts

Posted 07 January 2017 - 05:48 PM

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

Going from C89 to C99 fixed the issue.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users