Arduino fio bootloader for watchdog

I want to change arduino fio bootloader to get watchdog support.

I tested this sketch on mine, and it keeps rebooting all time until I poweroff and on again and load other sketch.

#include <avr/wdt.h>


 void setup(){
  Serial.begin(9600);
  wdt_enable (WDTO_8S);
 }
 void loop() {
     Serial.println ("Entered loop ...");
  wdt_reset ();  // give me another second to do stuff (pat the dog)
  while (true) ;   // oops, went into a loop              
 }

So, I guess it doesn’t support it. I don’t mind to lose wireless programming capability, I will not use never so it doesn’t mind.

the last:

while (true) ;

will keep you in the first cycle of the loop and prevent wdt_reset() from beeing called for a second pat of the dog

But, after 8 seconds, watchdog should be called and restart system, isn’t it?