Skip to content

Commit

Permalink
fix network package order
Browse files Browse the repository at this point in the history
  • Loading branch information
ImUrX committed Jun 18, 2024
1 parent dbe2215 commit 09ce485
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/network/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ void Connection::sendFeatureFlags() {
MUST(endPacket());
}

// PACKET_ACKNOWLEDGE_CONFIG_CHANGE 23
// PACKET_ACKNOWLEDGE_CONFIG_CHANGE 24

void Connection::sendAcknowledgeConfigChange(uint8_t sensorId, uint16_t configType) {
MUST(m_Connected);
Expand Down
5 changes: 3 additions & 2 deletions src/network/packets.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@
#define PACKET_TEMPERATURE 20
// #define PACKET_USER_ACTION 21 // Joycon buttons only currently
#define PACKET_FEATURE_FLAGS 22
#define PACKET_ACKNOWLEDGE_CONFIG_CHANGE 23
#define PACKET_SET_CONFIG_FLAG 24
// #define PACKET_ROTATION_ACCELERATION 23 // Unification of rot and accel data in one packet
#define PACKET_ACKNOWLEDGE_CONFIG_CHANGE 24
#define PACKET_SET_CONFIG_FLAG 25

#define PACKET_BUNDLE 100

Expand Down

0 comments on commit 09ce485

Please sign in to comment.