Skip to content

Commit

Permalink
nmeaout: correct module name
Browse files Browse the repository at this point in the history
this couldn't have worked
  • Loading branch information
peterbarker committed Oct 1, 2024
1 parent 848adb7 commit 9a5fe08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MAVProxy/modules/mavproxy_nmeaout.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
import sys, os, serial
from MAVProxy.modules.lib import mp_module

class NMEAMOutModule(mp_module.MPModule):
class NMEAOutModule(mp_module.MPModule):
def __init__(self, mpstate):
super(NMEAModule, self).__init__(mpstate, "NMEAOUT", "NMEA output")
super(NMEAOutModule, self).__init__(mpstate, "nmeaout", "NMEA output")
self.port = None
self.baudrate = 4800
self.data = 8
Expand Down Expand Up @@ -57,7 +57,7 @@ def cmd_nmeaout(self, args):
try:
self.serial = serial.Serial(self.port, self.baudrate, self.data, self.parity, self.stop)
except serial.SerialException as se:
print("Failed to open output port %s:%s" % (self.port, se.message))
print("Failed to open output port %s:%s" % (self.port, se))
else:
self.serial = open(self.port, mode='w')

Expand Down

0 comments on commit 9a5fe08

Please sign in to comment.