Rockbox mail archive
Subject: Error in rockbox_flash plugin -- be careful!
From: Johan Vromans (jvromans_at_squirrel.nl)
Date: 2003-07-16
The CVS version for the rockbox_flash plugin contains an error: if
verification of the ucl disk image fails, it displays the message "Any
key to exit". However, hitting F2 will start the flashing procedure
nevertheless...
Several solutions are possible, for example:
if (rc == eOK)
{ // was OK
rb->lcd_puts(0, 6, "[F2] to program");
rb->lcd_puts(0, 7, "other key to exit");
}
else
{ // error occured
rb->lcd_puts(0, 6, "Any key to exit");
}
rb->lcd_update();
button = rb->button_get(true);
button = rb->button_get(true);
if (rc != eOK || button != BUTTON_F2)
>>> ^^^^^^^^^^^^^
{
return;
}
-- Johan
Page was last modified "Jan 10 2012" The Rockbox Crew
|