From 1ae98bca8099db800675a1c9ce8978c0e2e4bc78 Mon Sep 17 00:00:00 2001 From: Urban Wallasch Date: Sat, 27 Jul 2019 18:45:35 +0200 Subject: [PATCH] * Use actual attribute constants as defined in SDK headers. --- teleshmem.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/teleshmem.cpp b/teleshmem.cpp index 2982bc3..a0b19d2 100644 --- a/teleshmem.cpp +++ b/teleshmem.cpp @@ -165,8 +165,14 @@ SCSAPI_VOID telemetry_configuration(const scs_event_t event, const void *const e for (const scs_named_value_t *current = info->attributes; current->name; ++current) { - if ( 0 == strcmp( current->name, "shifter.type" ) ) - telemetry->shifter = !strcmp( current->value.value_string.value, "manual" ); + // SCS_TELEMETRY_CONFIG_ATTRIBUTE_shifter_type + // SCS_SHIFTER_TYPE_arcade + // SCS_SHIFTER_TYPE_automatic + // SCS_SHIFTER_TYPE_manual + // SCS_SHIFTER_TYPE_hshifter + if ( 0 == strcmp( current->name, SCS_TELEMETRY_CONFIG_ATTRIBUTE_shifter_type ) ) + telemetry->shifter = !strcmp( current->value.value_string.value, SCS_SHIFTER_TYPE_manual ) + || !strcmp( current->value.value_string.value, SCS_SHIFTER_TYPE_hshifter ); log_print(" %s", current->name); -- 2.30.2