Hallo Leute, wo is hier der Fehler?
1 | struct PWM_s{ |
2 | unsigned char Period = 10; |
3 | unsigned char Duty = 2; |
4 | unsigned char Counter; |
5 | }SoftPWM; |
Der Compiler sagt: Error 1 expected ':', ',', ';', '}' or '__attribute__' before '=' token C:\Users\Ingo\Desktop\Projekte\Lauflicht\Programm\1V0\main.c 15 23 1V0 Error 2 struct has no members [-pedantic] C:\Users\Ingo\Desktop\Projekte\Lauflicht\Programm\1V0\main.c 14 8 1V0 Ich steh grad im Wald -.- Ingo