firmware: minor screendump related cleanups

- Remove unused redefinitions of screen_dump() from bootloaders
- Use empty do-while when screendump is compiled out

Change-Id: I3ccdb0390ddaa28d8f561ff744d0db6aaef17f5d
This commit is contained in:
Aidan MacDonald 2022-03-20 12:51:10 +00:00
parent 238cd13469
commit e956f7dc83
5 changed files with 2 additions and 22 deletions

View file

@ -212,9 +212,3 @@ void main(void)
start_firmware();
}
/* These functions are present in the firmware library, but we reimplement
them here because the originals do a lot more than we want */
void screen_dump(void)
{
}

View file

@ -588,10 +588,6 @@ void main(void)
/* These functions are present in the firmware library, but we reimplement
them here because the originals do a lot more than we want */
void screen_dump(void)
{
}
int usb_screen(void)
{
return 0;

View file

@ -648,10 +648,6 @@ void main(void)
/* These functions are present in the firmware library, but we reimplement
them here because the originals do a lot more than we want */
void screen_dump(void)
{
}
int usb_screen(void)
{
return 0;

View file

@ -539,9 +539,3 @@ void main(void)
}
}
/* These functions are present in the firmware library, but we reimplement
them here because the originals do a lot more than we want */
void screen_dump(void)
{
}

View file

@ -54,8 +54,8 @@
#ifdef BOOTLOADER
#define screen_dump()
#define remote_screen_dump()
#define screen_dump() do { } while(0)
#define remote_screen_dump() do { } while(0)
#else /* !BOOTLOADER */