File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313from openxc .formats .json import JsonFormatter
1414from .common import device_options , configure_logging , select_device
1515
16+ import functools
17+ print = functools .partial (print , flush = True )
18+
1619def receive (message , ** kwargs ):
1720 message ['timestamp' ] = time .time ()
1821 print ((JsonFormatter .serialize (message )))
Original file line number Diff line number Diff line change 1212from .common import device_options , configure_logging , select_device
1313import json
1414
15+ import functools
16+ print = functools .partial (print , flush = True )
17+
1518def scan (controller , bus = None ):
1619
1720 # TODO could read the response from the "PIDs supported" requests to see
@@ -28,7 +31,6 @@ def scan(controller, bus=None):
2831
2932 if (no_response == True ):
3033 print ("PID 0x%x did not respond" % pid )
31- sys .stdout .flush ()
3234
3335def parse_options ():
3436 parser = argparse .ArgumentParser (description = "Send requests for all "
Original file line number Diff line number Diff line change 1212
1313from .common import device_options , configure_logging , select_device
1414
15+ import functools
16+ print = functools .partial (print , flush = True )
17+
1518TESTER_PRESENT_MODE = 0x3e
1619TESTER_PRESENT_PAYLOAD = bytearray ([0 ])
1720
You can’t perform that action at this time.
0 commit comments