Added to platform API a function which allows to query the PTT status

This commit is contained in:
Silvano Seva 2020-10-24 16:10:22 +02:00 committed by Niccolò Izzo
parent af2e4eb372
commit 8a3872e5f9
3 changed files with 15 additions and 0 deletions

View File

@ -73,6 +73,11 @@ float platform_getVolumeLevel();
*/
uint8_t platform_getChSelector();
/**
* This function reads and returns the current PTT status.
*/
bool platform_getPttStatus();
/**
* This function turns on the selected led.
* @param led: which led to control

View File

@ -113,6 +113,11 @@ uint8_t platform_getChSelector()
return 0.0f;
}
bool platform_getPttStatus()
{
return false;
}
void platform_ledOn(led_t led)
{
switch(led)

View File

@ -91,6 +91,11 @@ uint8_t platform_getChSelector()
return 0.0f;
}
bool platform_getPttStatus()
{
return false;
}
void platform_ledOn(led_t led)
{
switch(led)