ReefAngel.CustomLabels causing reboot loop
Posted: Mon May 04, 2015 8:52 pm
I've been tinkering with code and uploading it all day. Last night, including this code in the setup() function caused no problems:
Adding two more lines:
Caused it to go into a reboot loop.
I eventually located the problem in this block by commenting the whole thing out. I cleverly noticed that I had two [11]s in there, and fixed the last line:
Still with the rebooting.
I tried commenting out various lines, to see if removing the last two (or three, or four) lines would allow it to work. Still kept rebooting.
Starting at the top, and uncommenting one line with every upload, I eventually narrowed the problem down to one line.
Uploading this code lets the controller work normally.
Uncommenting the line for [9] and uploading causes an endless reboot cycle.
Any thoughts? I don't see a problem with that line.
Code: Select all
ReefAngel.CustomLabels[0]="Heater1";
ReefAngel.CustomLabels[1]="Heater2";
ReefAngel.CustomLabels[2]="Skimmer";
ReefAngel.CustomLabels[3]="Neck Wipe";
ReefAngel.CustomLabels[4]="Refugium Light";
ReefAngel.CustomLabels[5]="Filters";
ReefAngel.CustomLabels[6]="Air Pump";
ReefAngel.CustomLabels[7]="Ozone";
ReefAngel.CustomLabels[8]="Diverter";
ReefAngel.CustomLabels[9]="Circulation";
ReefAngel.CustomLabels[10]="Kalk Stirrer";
ReefAngel.CustomLabels[11]="ATO Pump";
Code: Select all
ReefAngel.CustomLabels[12]="Return Left";
ReefAngel.CustomLabels[11]="Return Right";
I eventually located the problem in this block by commenting the whole thing out. I cleverly noticed that I had two [11]s in there, and fixed the last line:
Code: Select all
ReefAngel.CustomLabels[0]="Heater1";
ReefAngel.CustomLabels[1]="Heater2";
ReefAngel.CustomLabels[2]="Skimmer";
ReefAngel.CustomLabels[3]="Neck Wipe";
ReefAngel.CustomLabels[4]="Refugium Light";
ReefAngel.CustomLabels[5]="Filters";
ReefAngel.CustomLabels[6]="Air Pump";
ReefAngel.CustomLabels[7]="Ozone";
ReefAngel.CustomLabels[8]="Diverter";
ReefAngel.CustomLabels[9]="Circulation";
ReefAngel.CustomLabels[10]="Kalk Stirrer";
ReefAngel.CustomLabels[11]="ATO Pump";
ReefAngel.CustomLabels[12]="Return Left";
ReefAngel.CustomLabels[13]="Return Right";
I tried commenting out various lines, to see if removing the last two (or three, or four) lines would allow it to work. Still kept rebooting.
Starting at the top, and uncommenting one line with every upload, I eventually narrowed the problem down to one line.
Uploading this code lets the controller work normally.
Code: Select all
ReefAngel.CustomLabels[0]="Heater1";
ReefAngel.CustomLabels[1]="Heater2";
ReefAngel.CustomLabels[2]="Skimmer";
ReefAngel.CustomLabels[3]="Neck Wipe";
ReefAngel.CustomLabels[4]="Refugium Light";
ReefAngel.CustomLabels[5]="Filters";
ReefAngel.CustomLabels[6]="Air Pump";
ReefAngel.CustomLabels[7]="Ozone";
ReefAngel.CustomLabels[8]="Diverter";
// ReefAngel.CustomLabels[9]="Circulation";
ReefAngel.CustomLabels[10]="Kalk Stirrer";
ReefAngel.CustomLabels[11]="ATO Pump";
ReefAngel.CustomLabels[12]="Return Left";
ReefAngel.CustomLabels[13]="Return Right";
Uncommenting the line for [9] and uploading causes an endless reboot cycle.
Any thoughts? I don't see a problem with that line.