Skip to content

Commit

Permalink
Log a debugWarning if number of cells cannot be determined from HR_CAPS
Browse files Browse the repository at this point in the history
Co-authored-by: Leonard de Ruijter <[email protected]>
  • Loading branch information
bramd and LeonarddeR authored Dec 15, 2024
1 parent c1cd3c2 commit d2b6847
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/brailleDisplayDrivers/brailliantB.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ def _initAttempt(self):
if reportedNumCells > 0:
# Update numCells based on reported cell count from the device
numCells = reportedNumCells
else:
log.debugWarning("Could not get number of cells from HID device using HR_CAPS")
except WindowsError:
return # Fail!
self.numCells = numCells
Expand Down

0 comments on commit d2b6847

Please sign in to comment.