Skip to content

Commit

Permalink
Update HandheldCompanion/Controllers/LegionController.cs
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
Valkirie and coderabbitai[bot] authored Dec 18, 2023
1 parent 1e3007b commit 0d514cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion HandheldCompanion/Controllers/LegionController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,11 @@ private async void dataThreadLoop(object? obj)
continue;

HidReport report = hidDevice.ReadReport();
if (report is not null)
internal void SetPassthrough(bool enabled)

Check failure on line 240 in HandheldCompanion/Controllers/LegionController.cs

View workflow job for this annotation

GitHub Actions / Build and Release

The modifier 'internal' is not valid for this item

Check failure on line 240 in HandheldCompanion/Controllers/LegionController.cs

View workflow job for this annotation

GitHub Actions / Build and Release

The modifier 'internal' is not valid for this item
{
SetTouchPadStatus(enabled ? 1 : 0);
IsPassthrough = enabled;
}
{
// check if packet is safe
if (READY_STATES.Contains(report.Data[STATUS_IDX]))
Expand Down

0 comments on commit 0d514cb

Please sign in to comment.