I have recentally started adding code to an existing program for a LED Matrix I am making. I adjusted a few things on the code, but then when trying to toggle the WiFi searching on the Photon (I needed to flash some new code) the Photon displayed an error message: the SOS, then 10 red blinks, then SOS. I looked on the help page, and it said that the problem is “Assertion Failure”. I could not find a fix, and am asking for help. Whenever I power on the Photon, it stays offline, as per the code I have for the WiFi switch. However, whenevert I toggle the switch, the Photon displays the SOS, and powers off soon after. I have tried restarting the switch several times, and there is no change. The code will be linked below, and the only thing that I altered before the SOS was a bit of code on line 17, which is explained on the same line.
Thank you for your help!
I also just tried to compile as well, and it said that it could not compile. Is there a limit to how much code I can have?
Link to code