Jari 3 tháng trước cách đây
mục cha
commit
ba03d6dd40
3 tập tin đã thay đổi với 8 bổ sung và 5 xóa
  1. 3 2
      OpenPuck/haptics.cpp
  2. 2 1
      OpenPuck/puck_hid.cpp
  3. 3 2
      OpenPuck/serial_console.cpp

+ 3 - 2
OpenPuck/haptics.cpp

@@ -519,8 +519,9 @@ bool rfConnFlushRelay(uint8_t ch, uint8_t s1)
 			// full F1 decode (seq-dedup guards double-forward), so a drag streaming haptics now collects
 			// ~2x the samples, closing the gap to the real puck. A present reply returns early (~90us);
 			// only a genuine no-reply pays the bounded 400us window, so airtime stays in budget.
-			rfConnTx(ch, s1, p, plen,
-				 400); // one relay per poll cycle -- reply harvested as input
+			rfConnTx(
+				ch, s1, p, plen,
+				400); // one relay per poll cycle -- reply harvested as input
 		}
 	}
 	return have; // true = a relay frame went out this cycle (its reply is harvested as input, above)

+ 2 - 1
OpenPuck/puck_hid.cpp

@@ -741,7 +741,8 @@ void SteamPuckController::onReport45(int slot, const uint8_t *rep, bool fresh,
 		if (send && g_fwdContentDedup && blen >= 2) {
 			static uint8_t lastBody[NSLOT][53];
 			static uint8_t lastBodyLen[NSLOT] = { 0 };
-			uint8_t clen = (uint8_t)(blen - 1); // bytes after the counter
+			uint8_t clen =
+				(uint8_t)(blen - 1); // bytes after the counter
 			if (clen > sizeof lastBody[0])
 				clen = sizeof lastBody[0];
 			if (lastBodyLen[slot] == clen &&

+ 3 - 2
OpenPuck/serial_console.cpp

@@ -66,8 +66,9 @@ void serialConsolePoll()
 				else if (hz > 1000)
 					hz = 1000;
 				g_pollUs = (uint32_t)(1000000L / hz);
-				Serial.printf("# poll rate -> %ld Hz (%lu us)\n", hz,
-					      (unsigned long)g_pollUs);
+				Serial.printf(
+					"# poll rate -> %ld Hz (%lu us)\n", hz,
+					(unsigned long)g_pollUs);
 			} else if (!strcmp(line, "HR")) {
 				// A/B: disable the puck->controller haptic relay (Steam 0x80-0x86 rumble/pad feedback)
 				// to isolate whether relaying Steam's trackpad texture haptics degrades drag smoothness.