fehler behoben laufzeit

This commit is contained in:
2024-05-13 14:04:05 +02:00
parent abc915bf2b
commit 3722bff281
2 changed files with 5 additions and 2 deletions

View File

@ -105,6 +105,7 @@ public class Controller_Frontend {
Platform.runLater(() -> { Platform.runLater(() -> {
try { try {
stepintoButton(null); stepintoButton(null);
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
@ -117,7 +118,7 @@ public class Controller_Frontend {
}); });
autoRunThread.setDaemon(true); autoRunThread.setDaemon(true);
autoRunThread.start(); autoRunThread.start();
totalExecutionTimeLabel.setText("Total Execution Time: " + Commands.getTotalExecutionTime() + " ms");
} }
@ -162,6 +163,8 @@ public class Controller_Frontend {
Stage stage = (Stage) stepintoButton.getScene().getWindow(); Stage stage = (Stage) stepintoButton.getScene().getWindow();
CreateWindow.refreshTable(stage); CreateWindow.refreshTable(stage);
IOPorts.refreshUI(getTRISbuttons(), getPORTbuttons()); IOPorts.refreshUI(getTRISbuttons(), getPORTbuttons());
//Total Execution Time
totalExecutionTimeLabel.setText("Total Execution Time: " + Commands.getTotalExecutionTime() + " microsekunden");
} }

View File

@ -43,7 +43,7 @@ public class WatchdogTimer {
private void activateWatchdog(int prescaler) { private void activateWatchdog(int prescaler) {
// Teilerfaktor entsprechend einstellen // Teilerfaktor entsprechend einstellen durch zweierpotenz
switch (prescaler) { switch (prescaler) {
case 1: case 1: