firmware/main.c
changeset 25 96f051df5d60
parent 2 2f55e5dd591d
equal deleted inserted replaced
24:8fede80bde19 25:96f051df5d60
    54 		if (gg_ioflags & FLAG_I2C)
    54 		if (gg_ioflags & FLAG_I2C)
    55 		{
    55 		{
    56 			ReadKeys();
    56 			ReadKeys();
    57 			if (! (gg_ioflags & FLAG_KEY)) ReadClock();
    57 			if (! (gg_ioflags & FLAG_KEY)) ReadClock();
    58 
    58 
    59 			gg_ioflags &= (FLAG_I2C ^ 255);
    59 			gg_ioflags &= (FLAG_I2C ^ 255);					// delete i2c-flag
    60 		}
    60 		}
    61 
    61 
    62 
    62 
    63 // perhaps we need to power up?
    63 // perhaps we need to power up?
    64 		if (((gg_ioflags & FLAG_IR) && (gg_ir == RC5_KEY_POWER)) || (gg_ioflags & FLAG_ALARM))
    64 		if (((gg_ioflags & FLAG_IR) && (gg_ir == RC5_KEY_POWER)) || (gg_ioflags & FLAG_ALARM))