Jump to content
Sign in to follow this  
indirtwetrust

Unsigned Long overflow

Recommended Posts

I hope this is the right place to ask this but I’m having a problem with unsigned long.  According to the Energia reference it should go to 4,294,967,295.  But my unsigned long value is overflowing at 65535 same as unsigned int.  I’m using it as a set point for millies based on a pot so I’m limited to about 60 seconds.  Anything over 65535 wraps back around to zero giving me a time of what it’s set to minus 60 seconds.  I’m sure there’s a work around but everything I can find says unsigned long should work.

please help,

thanks.

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  

×