Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Haptic_Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,8 @@ float Haptic_Driver::getBemf()
case 0x03:
return 49.9;
}
Copy link

@tyirvine tyirvine Sep 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for opening this pull request. Check the comment above the function. It states the default value is 0x01 or 4.9mV. In the switch statement you could insert the following:

default:
  return 4.9;

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with you on this.


return 0.0;
}

void Haptic_Driver::createHeader(uint8_t numSnippets, uint8_t numSequences)
Expand Down