Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion nodeconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,18 @@ def _updateRTL2832UPrf(self):
prfpath = os.path.join(self.rtl2832U_path, 'RTL2832U.prf.xml')
_prf = parsers.PRFParser.parse(prfpath)

# Set the parameters for the target_device
# Set the parameters for the target_device
for struct in _prf.get_struct():
if struct.get_name() in "target_device":
for simple in struct.get_simple():
if simple.get_name() in self.props:
simple.set_value(str(self.props[simple.get_name()]))

# Set simple parameters for the device
for simple in _prf.get_simple():
if simple.get_id() in self.cmdlineProps.keys():
simple.set_value(str(self.cmdlineProps[simple.get_id()]))

prf_out = open(prfpath, 'w')
prf_out.write(parsers.parserconfig.getVersionXML())
_prf.export(prf_out,0)
Expand Down