change activity with time

Are you saying it wont read the second batch of directions because it's not specified in the first "while" statement?

I dont know what's going on but It only transmits a compass reading once after startup, which it reacts appropriately to. The problem is it wont update