This is a patch against the makefile to hunt down the correct location of the toolchain. It assumes that you are using GNU make. You will need to grab
util/where-is-the-toolchain.pl
as well.
This is a patch against direct-sensor.c and direct-sensor.h to correct a minor shortcoming in the handling of sensor values. Most of this patch has been incorporated into version 0.1.7 of legOS. Sensor values were being shifted 6 bits at runtime for no good reason. This shifting was being done in the rotation sensor code where it did not benefit humans. If you really want to work with 0-1023 values (instead of the native 0-65535 values), you can use the new ds_scale() and ds_unscale() macros.