Use APP_VERSION_AT_LEAST in a couple other places

This commit is contained in:
Cameron Gutman 2022-10-21 18:24:07 -05:00
commit af1dbfe505
2 changed files with 2 additions and 4 deletions

View file

@ -465,7 +465,7 @@ static int sendEnableHaptics(void) {
// Avoid sending this on earlier server versions, since they may terminate // Avoid sending this on earlier server versions, since they may terminate
// the connection upon receiving an unexpected packet. // the connection upon receiving an unexpected packet.
if (AppVersionQuad[0] < 7 || (AppVersionQuad[0] == 7 && AppVersionQuad[1] < 1)) { if (!APP_VERSION_AT_LEAST(7, 1, 0)) {
return 0; return 0;
} }

View file

@ -361,9 +361,7 @@ static PSDP_OPTION getAttributesList(char*urlSafeAddr) {
} }
} }
if (AppVersionQuad[0] < 7 || if (!APP_VERSION_AT_LEAST(7, 1, 408)) {
(AppVersionQuad[0] == 7 && AppVersionQuad[1] < 1) ||
(AppVersionQuad[0] == 7 && AppVersionQuad[1] == 1 && AppVersionQuad[2] < 408)) {
// This disables split frame encode on GFE 3.10 which seems to produce broken // This disables split frame encode on GFE 3.10 which seems to produce broken
// HEVC output at 1080p60 (full of artifacts even on the SHIELD itself, go figure). // HEVC output at 1080p60 (full of artifacts even on the SHIELD itself, go figure).
// It now appears to work fine on GFE 3.14.1. // It now appears to work fine on GFE 3.14.1.