On Thu, Nov 14, 2013 at 9:59 AM, GongYi <notifications@github.com> wrote:

> > + def get_angle(self):
>
> > +		sensor_data = self.read(0x42, 2)
> > +		return (ctypes.c_uint8(sensor_data[0]).value * 2 + ctypes.c_uint8(sensor_data[1]).value)
>
> Does this equal sensor_data&0xff * 2 + sensor_data[1] &0xff ?
>
>
Unfortunately, no.