When testing behaviors of TO(0), TO(1) and TO(2) using my Lunakey Macro keyboard, they normally work.
I built a firmware with the latest master branch of QMK Firmware. Then, I flashed it to the MCU of my keyboard.
I assigned TO(0), TO(1) and TO(2) to each layer with fixed Remap.
I pressed TO(n) key and confirmed to move to each target layout normally.
I unpluged and re-plug the USB cable from/to the keyboard, and I confirmed that each TO(n) was normally fetched from the MCU and was displayed on the Remap.
Fix #746
This pull request fixes the issue that the TO(n) key codes are different from them of current QMK Firmware.
See: https://github.com/qmk/qmk_firmware/pull/17989