Hopsel: (C) Funktion soll Pointer zurückgeben

Beitrag lesen

Hi Julian!

uint8_t portB = PORTB;
error: initializer element is not constant

Hast du es schon mit Typumwandlung versucht?
Wie wird PORTB definiert?

Bei mir funktioniert die Zuweisung problemlos. Welche Dateien hast du inkludiert?

MfG H☼psel

--
"It's amazing I won. I was running against peace, prosperity, and incumbency."
George W. Bush speaking to Swedish Prime Minister unaware a live television camera was still rolling, June 14, 2001
Selfcode: ie:% fl:( br:> va:) ls:& fo:) rl:? n4:& ss:| de:] js:| ch:? sh:( mo:) zu:)