BTbricks/brickster-android — pull request #6 by dipiep (2014-08-16 03:56:14+00:00)
Title: Wait for response

In order to fix #5, I've added a semaphore that acts as a resource lock. The semaphore is acquired before sending a command and is not released until a non-zero length response is received. This should prevent the receiver from getting corrupted serial data.