It might be a bit wierd, but I tried to do a simillar thing with a button in the dashboard and it didnt work when I tried to write a vlaue on the teleop and read it in the dashboard. It only worked when I used ONLY 'read' in the teleop with the name of the control in the dashboard.
Maybe you should change the writing refNum to the name of the bool indicator and delete the read function. Give it a try
