Fix valid values for gfxmem_size.

This commit is contained in:
Maxim Poliakovski 2020-10-09 16:33:17 +02:00
parent a3b17d46ce
commit ce9e8e7244
2 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,7 @@ static const PropMap GossamerSettings = {
{"rambank3_size",
new IntProperty( 0, vector<uint32_t>({0, 8, 16, 64, 128, 256}))},
{"gfxmem_size",
new IntProperty( 2, vector<uint32_t>({2, 4}))},
new IntProperty( 2, vector<uint32_t>({2, 4, 6}))},
};
static const map<string, tuple<PropMap, function<int(void)>>> machines = {

View File

@ -113,6 +113,7 @@ public:
/* perform value check */
if (!this->check_val(result)) {
LOG_F(ERROR, "Invalid property value %d!", result);
this->set_string(to_string(this->int_val));
} else {
this->int_val = result;
}