79345864

Date: 2025-01-10 13:35:56
Score: 1
Natty:
Report link

If only fails on the longer name. These are all defined as Arduino String (capital S). The shorter ones print just fine. Why does only the longer one fail? I think that is a length part to this. A little s or big S fails to print the longer one. So. now, I know how to fix it but why does it work for shorter and fail for longer all defined the same?

Serial.printf("%s %S\r\n", multiCity[whichCity].CityName.c_str(),
multiCity[whichCity].CityName);

Requesting city #1 - Benicia, CA Benicia, CA

Requesting city #2 - Dayton, OH Dayton, OH

Requesting city #3 - Shreveport, LA p⸮⸮?

Requesting city #0 - Bangui, RP Bangui, RP

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Mike Morrow