The reason we ask to see code is in order to see the problem in context in order to suggest fixes and/or different solutions. It does not matter if all of the code is on one line or multiple lines, the compiler does not care and it will not make any difference to the size of the resultant code If they are not commented out, the program locks.Īfter compressing each case to a single line, the program still locked up. The first group of 68 switch/case statements: switch (valu)Īnd the second group that 89 more switch/case statements: switch (StatusInt)Ĭlient.print(F("='#FF0000'\n")) Ĭlient.print(F("='#32CD32'\n")) Ĭlient.print(F("='#FFFF00'\n")) Ĭlient.print(F("='#FFFF00'\n")) Īs I stated before, if I comment out approximately 40 of the switch/cases in the SECOND group, the program runs fine. So if posting some code means getting an answer about the overall physical memory (not coding) limitations of the switch/case function, or what another process may take away from it's full potential, here's some code from my program. If I don't understand the 'documentation' of something or can't find it on the Internet is when I come here for clarification from those who've dealt with more than I have. To which 95% of my questions are still unanswered today because they AREN'T about applying the process in code, but the actual limitations (not coding) of that process. Whenever I've asked for clarification, it's always, 'where's the code', 'don't post snippets', etc. 10 11 To see this sketch in action, open the Serial monitor and send any character. The switch statement allows you 6 7 to choose from among a set of discrete values of a variable. But, if someone wants to continue to be pissy even after I've apologized for MY misunderstanding, I'm not going to be stepped on because someone is feeling cocky or 'holier than thou' that day. The switch statement accepts an expression and you use multiple cases statements to test an expression against the switch expression. Code 1 / 2 3 Switch statement with serial input 4 5 Demonstrates the use of a switch statement. I surely haven't been an to anyone either. I have not asked in ANY disrespectful way, ever. But if it appeases the masses, below is some snippets of each section (because of a 9000 character limit) that may answer my question of, if there is a way to increase this memory allocation for this process. I've seen other "noobs" ask questions and abandon their thread because they're being intimidated or their question never gets answered even after posting a 100 lines of code "as required". I mean, how long winded does one have to be to get their question across? This not only brings duress on the reader but others who have posted the same type of questions as well. I really must be missing the point as to the requirement of having to share code each time I ask for clarification of the limits of a function or process when it doesn't even involve any code, but of the programming language that isn't revealed on ANY of the Reference pages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |