1
0

fix config string generation for extra devices

This commit is contained in:
Howard Mao 2016-08-11 10:44:32 -07:00
parent 647dbefd9b
commit e0ae039235
2 changed files with 5 additions and 5 deletions

View File

@ -94,12 +94,12 @@ class BasePlatformConfig extends Config (
res append " };\n" res append " };\n"
res append " };\n" res append " };\n"
} }
res append "};\n"
for (device <- site(ExtraDevices)) { for (device <- site(ExtraDevices)) {
val deviceName = device.addrMapEntry.name val deviceName = device.addrMapEntry.name
val deviceRegion = addrMap("io:ext:" + deviceName) val deviceRegion = addrMap("io:ext:" + deviceName)
res.append(device.makeConfigString(deviceRegion)) res.append(device.makeConfigString(deviceRegion))
} }
res append "};\n"
res append '\u0000' res append '\u0000'
res.toString.getBytes res.toString.getBytes
} }