mwrlabs/mercury — pull request #3 by luander (2012-04-19 16:02:04+00:00)
Title: Fix for Ice Cream Sandwich connection problems

This patch fixes the connection problems on ICS devices, without compromising the connection with older Android devices.

The terminal on ICS returns a String line different from the older devices.
The Gingerbread device, for example, gives a shell line that look like this:
* "\r\n$ "
The ICS device, otherwise, gives a shell line like this:
* "app_122@android:/ $ "

So, changing the stop condition of the loop in "read()" function fixed the problem.

Thanks!