Skip to content

Commit

Permalink
Improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
tainfante committed Jan 20, 2018
1 parent e670249 commit efb5124
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 57 deletions.
5 changes: 2 additions & 3 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

127 changes: 73 additions & 54 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified out/production/KCC_App/sample/Controller.class
Binary file not shown.
4 changes: 4 additions & 0 deletions src/sample/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public void onStartAction(ActionEvent actionEvent) {

public void onStopAction(ActionEvent actionEvent) {
Port.getInstance().close();
Port.getInstance().Stop=true;
log.appendText("Port has been closed...\n");
stopBtn.setDisable(true);
startBtn.setDisable(false);
Expand All @@ -81,6 +82,9 @@ public void log(String text) {
public void onSelectCom(ActionEvent actionEvent) {
if (null != com.getSelectionModel().getSelectedItem()){

if (null == chosenCom)
chosenCom = "";

if ( !chosenCom.equals(com.getSelectionModel().getSelectedItem()) ) {
chosenCom = com.getSelectionModel().getSelectedItem();
}
Expand Down

0 comments on commit efb5124

Please sign in to comment.