SDL: Query the rate for the correct sensor (thanks @meyraud705)

From 65ff00ec1b1c45b9a95f495f107154c8eb5337bf Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 29 Jul 2021 14:18:54 -0700
Subject: [PATCH] Query the rate for the correct sensor (thanks @meyraud705)

---
 test/testgamecontroller.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/testgamecontroller.c b/test/testgamecontroller.c
index a413df94c..2a88745df 100644
--- a/test/testgamecontroller.c
+++ b/test/testgamecontroller.c
@@ -163,7 +163,7 @@ static void AddController(int device_index, SDL_bool verbose)
 
     if (SDL_GameControllerHasSensor(gamecontroller, SDL_SENSOR_GYRO)) {
         if (verbose) {
-            SDL_Log("Enabling gyro at %.2f Hz\n", SDL_GameControllerGetSensorDataRate(gamecontroller, SDL_SENSOR_ACCEL));
+            SDL_Log("Enabling gyro at %.2f Hz\n", SDL_GameControllerGetSensorDataRate(gamecontroller, SDL_SENSOR_GYRO));
         }
         SDL_GameControllerSetSensorEnabled(gamecontroller, SDL_SENSOR_GYRO, SDL_TRUE);
     }