20130428 on STM32F407VGT6

minor modifications inside while routine