Skip to content

Commit

Permalink
fixing bug in command exec (#75)
Browse files Browse the repository at this point in the history
thanks
  • Loading branch information
gschwaer authored and kmpm committed Jul 19, 2017
1 parent b8c80f7 commit 70f5ae5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodemcu_uploader/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,11 @@ def exec_file(self, path):
filename = os.path.basename(path)
log.info('Execute %s', filename)

content = from_file(path)
content = from_file(path).replace('\r', '').split('\n')

res = '> '
for line in content:
line = line.rstrip('\r\n')
line = line.rstrip('\n')
retlines = (res + self.__exchange(line)).splitlines()
# Log all but the last line
res = retlines.pop()
Expand Down

0 comments on commit 70f5ae5

Please sign in to comment.