From a2578ba42d8903afce395523a5c4391a4308da6b Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Sat, 3 Apr 2021 09:28:27 +0200 Subject: [PATCH] Propagating change of the return value of platform_getChannelSelector --- platform/targets/DM-1801/platform.c | 2 +- platform/targets/GD-77/platform.c | 2 +- platform/targets/MD-3x0/platform.c | 2 +- platform/targets/linux/platform.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/targets/DM-1801/platform.c b/platform/targets/DM-1801/platform.c index c89c4507..b32949db 100644 --- a/platform/targets/DM-1801/platform.c +++ b/platform/targets/DM-1801/platform.c @@ -139,7 +139,7 @@ float platform_getVolumeLevel() return 0.0f; } -uint8_t platform_getChSelector() +int8_t platform_getChSelector() { /* GD77 does not have a channel selector */ return 0; diff --git a/platform/targets/GD-77/platform.c b/platform/targets/GD-77/platform.c index 8ea232bd..d190d3bd 100644 --- a/platform/targets/GD-77/platform.c +++ b/platform/targets/GD-77/platform.c @@ -138,7 +138,7 @@ float platform_getVolumeLevel() return 0.0f; } -uint8_t platform_getChSelector() +int8_t platform_getChSelector() { /* GD77 does not have a channel selector */ return 0; diff --git a/platform/targets/MD-3x0/platform.c b/platform/targets/MD-3x0/platform.c index a7d64dc8..bb52ef7b 100644 --- a/platform/targets/MD-3x0/platform.c +++ b/platform/targets/MD-3x0/platform.c @@ -131,7 +131,7 @@ float platform_getVolumeLevel() return adc1_getMeasurement(3); } -uint8_t platform_getChSelector() +int8_t platform_getChSelector() { static const uint8_t rsPositions[] = { 11, 14, 10, 15, 6, 3, 7, 2, 12, 13, 9, 16, 5, 4, 8, 1 }; diff --git a/platform/targets/linux/platform.c b/platform/targets/linux/platform.c index ff5fc90b..06b6a9dc 100644 --- a/platform/targets/linux/platform.c +++ b/platform/targets/linux/platform.c @@ -62,7 +62,7 @@ float platform_getVolumeLevel() } -uint8_t platform_getChSelector() +int8_t platform_getChSelector() { return Radio_State.chSelector; }