fixed data flow of setbeat to not create unnecessary led state changes