Ok, i have a funny think happening and im not entirly sure why, hopeing someone will be abloe to help me on this.
Im adding things into time_update so i can have certain things happen on different days, i added in the following code and nothing happened, the days came and went and no call to my function.
To get it to work i changed it to look as below, now when it is the 24th do_mystuff is called and all works as it should, which brings me to the warning im getting on compile.
update.c:3131:warning:suggest parentheses around assignment used as truth value. Why isnt the first example with the == working as it should, or better yet, why is the single = working when its not the right way to compare values, or am i missing something totaly here.
Thanks in advance.
Im adding things into time_update so i can have certain things happen on different days, i added in the following code and nothing happened, the days came and went and no call to my function.
if(time_info.day == 24)
{
do_mystuff();
}
To get it to work i changed it to look as below, now when it is the 24th do_mystuff is called and all works as it should, which brings me to the warning im getting on compile.
if(time_info.day = 24)
{
do_mystuff();
}
update.c:3131:warning:suggest parentheses around assignment used as truth value. Why isnt the first example with the == working as it should, or better yet, why is the single = working when its not the right way to compare values, or am i missing something totaly here.
Thanks in advance.