Why can't I use task2 ? [solved: cos it wasn't started]

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Guys,

I tried to insert a function into task2, but it doesn't give me a response,

Do I miss something here ?

void task2(void)
{
battery_monitor();
task_timers[2] = 50; //every 10000ms
reset_task(2);
}

I'm using this tutorial as a frame :
https://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=95490

Any helps or ideas will be appreciated
Thank you

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is task2 started?

Remember the other day when I told you to think a bit about what others would need to see in order to help you? That still holds true.

How about showing us e.g. your main() function, where you probably have missed out starting the task..

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

do you mean this one ?

// Initial mode
    //
    //   start at least one task here
    //
       set_task(0);   //task0 runs display the time
	   set_task(1);  //put tick on output

If it is, I missed it, I'll give a try,
Thanks for the clue...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It's done, thanks my friend

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

:roll:

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]