application (minor): improve spacing
This commit is contained in:
parent
931f0e3cbb
commit
64736947e9
|
@ -214,7 +214,7 @@ static void command_version(void* argument)
|
||||||
}
|
}
|
||||||
// show flash size
|
// show flash size
|
||||||
printf("flash size: ");
|
printf("flash size: ");
|
||||||
if (0xffff==DESIG_FLASH_SIZE) {
|
if (0xffff == DESIG_FLASH_SIZE) {
|
||||||
printf("unknown (probably a defective micro-controller\n");
|
printf("unknown (probably a defective micro-controller\n");
|
||||||
} else {
|
} else {
|
||||||
printf("%u KB\n", DESIG_FLASH_SIZE);
|
printf("%u KB\n", DESIG_FLASH_SIZE);
|
||||||
|
@ -284,11 +284,11 @@ static void command_bootloader(void* argument)
|
||||||
static void process_command(char* str)
|
static void process_command(char* str)
|
||||||
{
|
{
|
||||||
// ensure actions are available
|
// ensure actions are available
|
||||||
if (NULL==menu_commands || 0==LENGTH(menu_commands)) {
|
if (NULL == menu_commands || 0 == LENGTH(menu_commands)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// don't handle empty lines
|
// don't handle empty lines
|
||||||
if (!str || 0==strlen(str)) {
|
if (!str || 0 == strlen(str)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
bool command_handled = false;
|
bool command_handled = false;
|
||||||
|
@ -334,9 +334,9 @@ void main(void)
|
||||||
if (FLASH_OBR&FLASH_OBR_OPTERR) {
|
if (FLASH_OBR&FLASH_OBR_OPTERR) {
|
||||||
printf(" (option bytes not set in flash: software wachtdog used, not automatically started at reset)\n");
|
printf(" (option bytes not set in flash: software wachtdog used, not automatically started at reset)\n");
|
||||||
} else if (FLASH_OBR&FLASH_OBR_WDG_SW) {
|
} else if (FLASH_OBR&FLASH_OBR_WDG_SW) {
|
||||||
printf(" (software wachtdog used, not automatically started at reset)\n");
|
printf(" (software watchdog used, not automatically started at reset)\n");
|
||||||
} else {
|
} else {
|
||||||
printf(" (hardware wachtdog used, automatically started at reset)\n");
|
printf(" (hardware watchdog used, automatically started at reset)\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue