From 98947e3750e07054f9da46af82225e9ef89ed656 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Tue, 3 Aug 2010 11:13:06 +0000 Subject: Ensure all demos now compile in C99 standards mode, and not GNU99 (C99 + GNU extensions). --- Projects/LEDNotifier/LEDNotifier.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Projects/LEDNotifier') diff --git a/Projects/LEDNotifier/LEDNotifier.c b/Projects/LEDNotifier/LEDNotifier.c index da4ee9e5c..d1f4451e7 100644 --- a/Projects/LEDNotifier/LEDNotifier.c +++ b/Projects/LEDNotifier/LEDNotifier.c @@ -113,11 +113,11 @@ int main(void) for (;;) { /* Read in next LED colour command from the host */ - uint8_t ColorUpdate = fgetc(&USBSerialStream); + uint8_t ColourUpdate = fgetc(&USBSerialStream); /* Top 3 bits select the LED, bottom 5 control the brightness */ - uint8_t Channel = (ColorUpdate & 0b11100000); - uint8_t Duty = (ColorUpdate & 0b00011111); + uint8_t Channel = (ColourUpdate & 0b11100000); + uint8_t Duty = (ColourUpdate & 0b00011111); if (Channel & (1 << 5)) SoftPWM_Channel1_Duty = Duty; -- cgit v1.2.3