Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

ETRO_SSN583
Esteemed Contributor

Why will this simple switch typing not work ? Project attached.

Note the first error goes away in the switch construct if I eliminate "case 4 :"

Regards, Dana.

0 Likes
1 Solution
Bob_Marlowe
Expert II

There is a semicolon missing after the colon of case 4

there is a "}" missing at the end to close the main()

Happy coding

Bob

View solution in original post

2 Replies
Bob_Marlowe
Expert II

There is a semicolon missing after the colon of case 4

there is a "}" missing at the end to close the main()

Happy coding

Bob

View solution in original post

ETRO_SSN583
Esteemed Contributor

Thanks Bob, feel like idiot missing the for() terminating bracket.

Did not realize a CASE statement had to have code following it. If I place a break;

after last case that error goes away.

Regards, Dana.

0 Likes