NXC: BT NXT to NXT msg from slave to master

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
mcsummation
Posts: 220
Joined: 23 Jan 2012, 17:07
Location: Round Rock, TX

Re: NXC: BT send from slave to master

Post by mcsummation »

I looked at the code you posted in the attachment and didn't see anything I would identify as a "semaphore". (I did see some mutexes.) What code are you using for a semaphore?
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: NXC: BT send from slave to master

Post by HaWe »

as semaphores I use global variables which are set by/for independend tasks to indicate that a message for a remote job has to be sent or that a remote job has been finished and which are reset after that transmission. Just call them simply "global variables", it's actuallly nothing else.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests