altos-avr: Store TM tick and state in log, get logging on/off working