'bit' was not declared

Hi guys,

I'm in the middle of learning about using watchdog timer for my project.

i learn it from Gammon Forum : Electronics : Microprocessors : Power saving techniques for microprocessors , the information that i get from there is great and very useful :slight_smile:

i try to follow the watchdog example code, and applied it in my code, but in the example in void loop() there is

WDTCSR = bit(WDIE} | bit(WDP3) | bit(WDPO);    //set WDIE, and 8 seconds delay
  wdt_reset();    //pat the dog

and when i try to compile my code theres is an error message : " 'bit' was not declared in this scope "

what is the problem ?

hope there is will be any info for this
thanks :slight_smile:

Careful:
bit(WDIE}
change to
bit(WDIE)

OH MY GOD, need coffee i think haha.
Thanks