and sequencerwrite were two debug messages that had a type conflict in the printf. I put in a (int) to solve it.