Skip to main content
6 events
when toggle format what by license comment
Mar 12, 2019 at 10:05 comment added Dorian @AmirHosseinJobeiri The while(1) loop is replaced by the main loop so it is happening forever until you press the button and change the status variable. Or just use return on button pressed inside while(1) loop but it is quite difficult to extend your code further.
Mar 12, 2019 at 9:44 vote accept Amir Hossein Jobeiri
Mar 12, 2019 at 9:43 comment added Amir Hossein Jobeiri Thanks for your answer.But I need that action happen infinitely until the status of the button change from for example single push to double push .when I use if statement It does not work properly.
Mar 9, 2019 at 3:57 comment added Filip Franik Please use Enum instead of "magic number"
Mar 8, 2019 at 14:19 history edited Dorian CC BY-SA 4.0
added 141 characters in body
Mar 8, 2019 at 14:13 history answered Dorian CC BY-SA 4.0