Better testing with fake devices

This commit is contained in:
Andrea Mazzoleni 2015-10-09 18:33:45 +02:00
parent 5ce1aa5bcc
commit 8de54cb863

View file

@ -892,7 +892,12 @@ static int devtest(tommy_list* low, int operation)
switch (c) {
case 0 : entry->smart[j] = 0; break;
case 1 : entry->smart[j] = SMART_UNASSIGNED; break;
default : entry->smart[j] = c; break;
default:
if (j == 193)
entry->smart[j] = c - 2;
else
entry->smart[j] = 0;
break;
}
}