summaryrefslogtreecommitdiffstats
path: root/src/input_common/helpers/joycon_protocol/generic_functions.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-01-27 20:12:54 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2023-01-28 00:12:04 +0100
commit8647c727781accf79fe78c19eeee9acdb24f2927 (patch)
treeb72ad4638850786d36b7568be6cd1a933c518dd1 /src/input_common/helpers/joycon_protocol/generic_functions.cpp
parentMerge pull request #9685 from liamwhite/minmax (diff)
downloadyuzu-8647c727781accf79fe78c19eeee9acdb24f2927.tar
yuzu-8647c727781accf79fe78c19eeee9acdb24f2927.tar.gz
yuzu-8647c727781accf79fe78c19eeee9acdb24f2927.tar.bz2
yuzu-8647c727781accf79fe78c19eeee9acdb24f2927.tar.lz
yuzu-8647c727781accf79fe78c19eeee9acdb24f2927.tar.xz
yuzu-8647c727781accf79fe78c19eeee9acdb24f2927.tar.zst
yuzu-8647c727781accf79fe78c19eeee9acdb24f2927.zip
Diffstat (limited to 'src/input_common/helpers/joycon_protocol/generic_functions.cpp')
-rw-r--r--src/input_common/helpers/joycon_protocol/generic_functions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/helpers/joycon_protocol/generic_functions.cpp b/src/input_common/helpers/joycon_protocol/generic_functions.cpp
index 63cfb1369..4763ba3e6 100644
--- a/src/input_common/helpers/joycon_protocol/generic_functions.cpp
+++ b/src/input_common/helpers/joycon_protocol/generic_functions.cpp
@@ -72,7 +72,7 @@ DriverResult GenericProtocol::GetBattery(u32& battery_level) {
DriverResult GenericProtocol::GetColor(Color& color) {
ScopedSetBlocking sb(this);
std::vector<u8> buffer;
- const auto result = ReadSPI(CalAddr::COLOR_DATA, 12, buffer);
+ const auto result = ReadSPI(SpiAddress::COLOR_DATA, 12, buffer);
color = {};
if (result == DriverResult::Success) {
@@ -88,7 +88,7 @@ DriverResult GenericProtocol::GetColor(Color& color) {
DriverResult GenericProtocol::GetSerialNumber(SerialNumber& serial_number) {
ScopedSetBlocking sb(this);
std::vector<u8> buffer;
- const auto result = ReadSPI(CalAddr::SERIAL_NUMBER, 16, buffer);
+ const auto result = ReadSPI(SpiAddress::SERIAL_NUMBER, 16, buffer);
serial_number = {};
if (result == DriverResult::Success) {