'Set sync mode'

def _setSync(self, syncMode):

    if ((syncMode >= 0) and (syncMode <= 255)):
        p = snap.Packet(self.address, snap.localAddress, 0, 1, [CMD_SYNC, int(syncMode)])
        p.send()
    else:
        raise _RepRapError('Invalid    sync    mode')
