diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-08-03 11:13:06 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-08-03 11:13:06 +0000 |
| commit | 280feb1860f83b32fc88895d7849a761b78b6970 (patch) | |
| tree | 4cfa0d064d635eccc620b1b96d4e9b8c671d0d6d /Projects/LEDNotifier | |
| parent | 15b11ddb113a1e342d32c32a3e01890a53119554 (diff) | |
Ensure all demos now compile in C99 standards mode, and not GNU99 (C99 + GNU extensions).
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1433 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Projects/LEDNotifier')
| -rw-r--r-- | Projects/LEDNotifier/LEDNotifier.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Projects/LEDNotifier/LEDNotifier.c b/Projects/LEDNotifier/LEDNotifier.c index da4ee9e5..d1f4451e 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; |
