Fixed setting of RSSI level value from linux emulator shell
This commit is contained in:
parent
c966f82352
commit
6b2affe2cd
|
|
@ -18,6 +18,7 @@
|
||||||
* along with this program; if not, see <http://www.gnu.org/licenses/> *
|
* along with this program; if not, see <http://www.gnu.org/licenses/> *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
#include <emulator/emulator.h>
|
||||||
#include <interfaces/radio.h>
|
#include <interfaces/radio.h>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
@ -81,7 +82,7 @@ float radio_getRssi()
|
||||||
{
|
{
|
||||||
// Commented to reduce verbosity on Linux
|
// Commented to reduce verbosity on Linux
|
||||||
// printf("radio_linux: requested RSSI at freq %d, returning -100dBm\n", rxFreq);
|
// printf("radio_linux: requested RSSI at freq %d, returning -100dBm\n", rxFreq);
|
||||||
return -100.0f;
|
return emulator_state.RSSI;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum opstatus radio_getStatus()
|
enum opstatus radio_getStatus()
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ extern Uint32 SDL_Screenshot_Event;
|
||||||
|
|
||||||
emulator_state_t emulator_state =
|
emulator_state_t emulator_state =
|
||||||
{
|
{
|
||||||
12, // RSSI
|
-100.0f, // RSSI
|
||||||
8.2f, // Vbat
|
8.2f, // Vbat
|
||||||
3, // mic level
|
3, // mic level
|
||||||
4, // volume level
|
4, // volume level
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue