mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-01 03:04:04 -04:00
AP_HAL_Linux: factor functionality in hwdef.py classes
This commit is contained in:
parent
0c0278a70d
commit
d60a7e5f93
@ -24,6 +24,13 @@ class LinuxHWDef(hwdef.HWDef):
|
|||||||
if d.startswith('define '):
|
if d.startswith('define '):
|
||||||
f.write('#define %s\n' % d[7:])
|
f.write('#define %s\n' % d[7:])
|
||||||
|
|
||||||
|
def process_line(self, line, depth):
|
||||||
|
'''process one line of pin definition file'''
|
||||||
|
# keep all config lines for later use
|
||||||
|
self.all_lines.append(line)
|
||||||
|
self.alllines.append(line)
|
||||||
|
super(LinuxHWDef, self).process_line(line, depth)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user