added check for 'green' and 'yell0w' files for 1boot
This commit is contained in:
parent
4f9ca4d5b6
commit
9e076bc373
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
#include "basic/basic.h"
|
#include "basic/basic.h"
|
||||||
#include "basic/config.h"
|
#include "basic/config.h"
|
||||||
|
#include "filesystem/ff.h"
|
||||||
|
|
||||||
#include "lcd/print.h"
|
#include "lcd/print.h"
|
||||||
#include "usetable.h"
|
#include "usetable.h"
|
||||||
|
@ -34,10 +35,22 @@ static const struct MENU submenu_color={ "r0ket color?", {
|
||||||
|
|
||||||
void ram(void){
|
void ram(void){
|
||||||
bool again = true;
|
bool again = true;
|
||||||
|
FIL file;
|
||||||
menuflags|=(MENU_JUSTONCE|MENU_BIG);
|
menuflags|=(MENU_JUSTONCE|MENU_BIG);
|
||||||
screen_intro();
|
screen_intro();
|
||||||
while (again) {
|
while (again) {
|
||||||
color_set = false;
|
color_set = false;
|
||||||
|
|
||||||
|
if( f_open(&file, "yell0w", FA_OPEN_EXISTING|FA_READ) == 0 ){
|
||||||
|
yellow();
|
||||||
|
color_set = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if( f_open(&file, "green", FA_OPEN_EXISTING|FA_READ) == 0 ){
|
||||||
|
yellow();
|
||||||
|
color_set = true;
|
||||||
|
}
|
||||||
|
|
||||||
while (!color_set) {
|
while (!color_set) {
|
||||||
handleMenu(&submenu_color);
|
handleMenu(&submenu_color);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue