Hi, I'm starting to use MQX Lite and I'm noticing that it creates a stub with a int counter; and a counter++; line like this:
The questions are: Is it really needed? Why does it instruct to write our code after the counter++? Is it ok if I remove it?
I've removed it and my LedTask still works fine, is there any warning on doing so?
Thanks.
Solved! Go to Solution.
No, it is not needed.
It is just example code.
You can delete it or modify.....
In fact endless while loop is also just typical example code, you can use any other approach.
Variable “counter” could be sometimes used for debugging purposes – for test whether task something does (however you have LED output, so it is duplicity information)….
No, it is not needed.
It is just example code.
You can delete it or modify.....
In fact endless while loop is also just typical example code, you can use any other approach.
Variable “counter” could be sometimes used for debugging purposes – for test whether task something does (however you have LED output, so it is duplicity information)….
Great, thanks!