Skip to content

Commit

Permalink
Fix SerialPort.getFlowControlMode() infinite recursion (openhab#4007)
Browse files Browse the repository at this point in the history
An infinite recursion would occur when calling this method.
I did not find any add-ons using this method but that could be due to this bug.

Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
  • Loading branch information
wborn authored and Ciprian Pascu committed Jan 17, 2024
1 parent 5932f44 commit 76da465
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public void notifyOnCarrierDetect(boolean enable) {

@Override
public int getFlowControlMode() {
return getFlowControlMode();
return sp.getFlowControlMode();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public void notifyOnCarrierDetect(boolean enable) {

@Override
public int getFlowControlMode() {
return getFlowControlMode();
return sp.getFlowControlMode();
}

@Override
Expand Down

0 comments on commit 76da465

Please sign in to comment.