updated to latest microcontroller code