Project

General

Profile

« Previous | Next » 

Revision 196

Added by markw almost 11 years ago

Init fil type properly on real hardware. Static init does not work with linker setup.

View differences:

firmware/fileselector.c
return res;
}
char const * fil_type = 0;
char const * fil_type_rom = "ROM";
char const * fil_type_bin = "BIN";
char const * fil_type_car = "CAR";
char const * fil_type;
char const * fil_type_rom;
char const * fil_type_bin;
char const * fil_type_car;
int filter_specified(struct SimpleDirEntry * entry)
{
if (dir_is_subdir(entry)) return 1;
firmware/main.h
int main(void)
#endif
{
fil_type_rom = "ROM";
fil_type_bin = "BIN";
fil_type_car = "CAR";
int i;
for (i=0; i!=6; ++i)
{

Also available in: Unified diff