Changed the keyboard daemon thread priority to NORMAL

This commit is contained in:
Andrea Cavalli 2017-09-24 15:38:58 +02:00
parent 8eeca5ab09
commit 89d8073b96

View File

@ -8,6 +8,7 @@ import org.warp.picalculator.device.chip.SerialToParallel;
import org.warp.picalculator.gui.DisplayManager;
import org.warp.picalculator.gui.GUIErrorMessage;
import org.warp.picalculator.gui.screens.KeyboardDebugScreen;
import org.warp.picalculator.gui.screens.MarioScreen;
import org.warp.picalculator.gui.screens.Screen;
import com.pi4j.wiringpi.Gpio;
@ -91,7 +92,7 @@ public class Keyboard {
}
});
kt.setName("Keyboard thread");
kt.setPriority(Thread.MIN_PRIORITY);
kt.setPriority(Thread.NORM_PRIORITY);
kt.setDaemon(true);
kt.start();
}
@ -791,7 +792,7 @@ public class Keyboard {
refresh = true;
break;
case BRIGHTNESS_CYCLE_REVERSE:
// DisplayManager.INSTANCE.setScreen(new MarioScreen()); //TODO: rimuovere: prova
DisplayManager.INSTANCE.setScreen(new MarioScreen()); //TODO: rimuovere: prova
DisplayManager.cycleBrightness(true);
refresh = true;
break;