While loop inside void loop() causing problems

blimpyway:
The purpose of watchdog timer (WDT) is to recover program when loop() hangs out for more than.. 8sec I think.

Eight seconds is the longest configurable watchdog timeout - it could be as little as 16 milliseconds