patch from olimex:
http://olimex.wordpress.com/2013/09/18/7795/