From: Urban Wallasch Date: Sat, 27 Jul 2019 16:45:35 +0000 (+0200) Subject: * Use actual attribute constants as defined in SDK headers. X-Git-Tag: v0.1.0~62 X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=1ae98bca8099db800675a1c9ce8978c0e2e4bc78;p=ets2_tele.git * Use actual attribute constants as defined in SDK headers. --- 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);