Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Rockbox mail archive

Subject: Error in rockbox_flash plugin -- be careful!

Error in rockbox_flash plugin -- be careful!

From: Johan Vromans <jvromans_at_squirrel.nl>
Date: Wed, 16 Jul 2003 15:06:59 +0200

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
Received on 2003-07-16

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy