def process(pipe, config): import arduino print('arduino process on ', os.getpid()) if os.system("renice -5 %d" % os.getpid()): print('warning, failed to renice hat arduino process') while True: arduino.arduino_process(pipe, config) time.sleep(15)
def process(pipe, config): import arduino print('arduino process on ', os.getpid()) while True: arduino.arduino_process(pipe, config) time.sleep(15)