Re-enabling optical encoder code