From 36db3a1707dd5c79783bdda5c949bef57aa43372 Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Fri, 27 Nov 2020 15:28:16 +0100 Subject: [PATCH] Small interface corrections --- sa_cmd.c | 6 ++++++ si4432.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/sa_cmd.c b/sa_cmd.c index c398f6b..e77e19a 100644 --- a/sa_cmd.c +++ b/sa_cmd.c @@ -273,8 +273,14 @@ VNA_SHELL_FUNCTION(cmd_if) return; } else { int a = my_atoi(argv[0]); +#ifdef __SI4432__ if (a!= 0 &&( a < 433000000 || a>435000000)) goto usage; +#endif +#ifdef __SI4463__ + if (a!= 0 &&( a < 977000000 || a>980000000)) + goto usage; +#endif setting.auto_IF = false; set_IF(a); } diff --git a/si4432.c b/si4432.c index d4f834d..55a2c5d 100644 --- a/si4432.c +++ b/si4432.c @@ -1435,9 +1435,9 @@ void SI4463_start_tx(uint8_t CHANNEL) { uint8_t data[] = { - 0x11, 0x22, 0x04, 0x00, - 0x05, // Fine PA mode and switched current PA - SI4463_output_level, // Level + 0x11, 0x22, 0x04, 0x00, // PA_MODE + 0x08, // Coarse PA mode and class E PA + (uint8_t)SI4463_output_level, // Level 0x00, // Duty 0x00 // Ramp };