Skip to content

Commit

Permalink
fix modem.get_model() output to be tolerant to garbage
Browse files Browse the repository at this point in the history
  • Loading branch information
ftylitak committed Dec 28, 2021
1 parent d38b215 commit 7c8934d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion insighioNode/lib/networking/modem/modem_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def get_model(self):
if not status or len(lines) < 2:
return None

return lines[1].lower()
new_line = "\n"
return new_line.join(lines).lower()

def power_on(self):
# network registration
Expand Down

0 comments on commit 7c8934d

Please sign in to comment.