def ping(self):
        self.ping_buffer, self.other_ping = self.other_ping, self.ping_buffer
        log.info("Broadcasting audio ping")
        log.info(repr(self.ping_buffer))
        mod = modulator.MFSKModulator()
        print repr(self.ping_buffer)
        mod.modulate_symbol(self.ping_buffer)
        demod = demodulator.MFSKDemodulator(sample_rate=audio.RATE, callback=lambda i: sys.stdout.write(repr(i) % "%s\n"))
        demod.consume(mod.emit_all())

        mod.write_to_stream(self.stream)
dataset/ETHPy150Open richo/groundstation/groundstation/audio_announcer.py/AudioAnnouncer.ping/swapped operands of `%`