Fixed announcement of power level both in settings menu and channel summary
This commit is contained in:
parent
0452bd0f10
commit
e5de5b96a3
|
|
@ -28,6 +28,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <utils.h>
|
||||
#include <ui.h>
|
||||
|
||||
#include "interfaces/cps_io.h"
|
||||
|
|
@ -253,7 +254,8 @@ void vp_announceChannelSummary(const channel_t* channel,
|
|||
}
|
||||
|
||||
addSilenceIfNeeded(localFlags);
|
||||
vp_anouncePower(channel->power, localFlags);
|
||||
float power = dBmToWatt(channel->power);
|
||||
vp_anouncePower(power, localFlags);
|
||||
addSilenceIfNeeded(localFlags);
|
||||
|
||||
if (channelNumber > 0) // i.e. not called from VFO.
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@
|
|||
#include <string.h>
|
||||
#include <battery.h>
|
||||
#include <input.h>
|
||||
#include <utils.h>
|
||||
#include <hwconfig.h>
|
||||
#include <voicePromptUtils.h>
|
||||
|
||||
|
|
@ -918,7 +919,8 @@ static void _ui_fsm_menuMacro(kbd_msg_t msg, bool *sync_rtx)
|
|||
else
|
||||
state.channel.power = 100;
|
||||
*sync_rtx = true;
|
||||
vp_anouncePower(state.channel.power, queueFlags);
|
||||
float power = dBmToWatt(state.channel.power);
|
||||
vp_anouncePower(power, queueFlags);
|
||||
break;
|
||||
break;
|
||||
case 7:
|
||||
|
|
|
|||
Loading…
Reference in New Issue