cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

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
Reply
1 Solution
Esteemed Contributor 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
Esteemed Contributor 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

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
Reply