We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d1b47d commit 8df3a32Copy full SHA for 8df3a32
pedaal/pedaal.ino
@@ -256,12 +256,15 @@ void loop() {
256
String clutchStringValues = ClutchBefore + p1 + ClutchAfter + p1 + clutchRawValue + p1 + ClutchBeforeHID + cm;
257
String clutchString = clutchStringPrefix + clutchStringValues;
258
259
- Serial.println(throttleString + brakeString + clutchString);
+
260
Joystick.sendState(); // Update the Joystick status on the PC
261
- // Serial.flush();
262
-// delay(150);
263
264
- // timing
+ if (Serial.availableForWrite ()) {
+ Serial.println(throttleString + brakeString + clutchString);
+ }
265
266
+ // delay(150);
267
+ // timing
268
// unsigned long end = micros();
269
// unsigned long delta = end - start;
270
// Serial.println(delta);
0 commit comments