Make Terrain follow function with lidar switchable with Mode switch in Loiter

Hey there,
i‘ve just installed a lidar lite to my tarot hex. Could you please tell me how to switch from terrain following with lidar to altitude hold via baro using a channel of my radio while in Loiter mode?

Thanks in advance

7IM