Skip to content

Commit

Permalink
Flush standard output for MinTTY
Browse files Browse the repository at this point in the history
  • Loading branch information
PPRAKA30 committed Feb 27, 2020
1 parent 6206981 commit 78622d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openxc/tools/obd2scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module are internal only.
"""


import sys
import argparse

from .common import device_options, configure_logging, select_device
Expand All @@ -24,11 +24,11 @@ def scan(controller, bus=None):
for item in response[1]:
if 'success' in item:
no_response = False
print(("PID 0x%x responded with: %s" % (pid, item)))
print("PID 0x%x responded with: %s" % (pid, item))

if (no_response == True):
print(("PID 0x%x did not respond" % pid))

print("PID 0x%x did not respond" % pid)
sys.stdout.flush()

def parse_options():
parser = argparse.ArgumentParser(description="Send requests for all "
Expand Down

0 comments on commit 78622d6

Please sign in to comment.