Vargham Creative Commons License 2017.01.15 0 0 2720

Ezt az értéket növelted?

#define LAMP_TIMEOUT    5000 //ms

Kell egy L (long int jelölése) a végére

#define LAMP_TIMEOUT    5000L //ms

 

Valamint int helyett:

unsigned int timestampLamp = 0;
unsigned int timestampButton = 0;

long

unsigned long timestampLamp = 0;
unsigned long timestampButton = 0;

 

Ezeket javítottam, itt a link

https://gist.github.com/vargham/772c6b116f4aec4f0792dd573ee00137

 

Mást is átírtál a kódban?

Előzmény: Nooorbi91 (2719)