Change debug prints in readTextDevice' to refer to right function