update readme

This commit is contained in:
Nicholas O'Leary
2012-11-11 14:50:11 +00:00
parent f13dc5e166
commit 8b00d6ed07
2 changed files with 56 additions and 3 deletions

View File

@ -76,9 +76,9 @@ class Sketch(object):
fin.close()
fout = open(os.path.join(self.w.build_dir,"src","sketch.ino"),"w")
for l in lines:
if re.match(r"^byte server\[\]",l):
if re.match(r"^byte server\[\] = {",l):
fout.write("byte server[] = { %s };\n"%(settings.server_ip.replace(".",", "),))
elif re.match(r"^byte ip\[\]",l):
elif re.match(r"^byte ip\[\] = {",l):
fout.write("byte ip[] = { %s };\n"%(settings.arduino_ip.replace(".",", "),))
else:
fout.write(l)