diff options
Diffstat (limited to 'src/input_common/drivers/joycon.cpp')
| -rw-r--r-- | src/input_common/drivers/joycon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/drivers/joycon.cpp b/src/input_common/drivers/joycon.cpp index 29f0dc0c8..696a6db39 100644 --- a/src/input_common/drivers/joycon.cpp +++ b/src/input_common/drivers/joycon.cpp | |||
| @@ -316,7 +316,7 @@ void Joycons::OnBatteryUpdate(std::size_t port, Joycon::ControllerType type, | |||
| 316 | return; | 316 | return; |
| 317 | } | 317 | } |
| 318 | 318 | ||
| 319 | Common::Input::BatteryLevel battery{value.status.Value()}; | 319 | Common::Input::BatteryLevel battery{}; |
| 320 | switch (value.status) { | 320 | switch (value.status) { |
| 321 | case 0: | 321 | case 0: |
| 322 | battery = Common::Input::BatteryLevel::Empty; | 322 | battery = Common::Input::BatteryLevel::Empty; |