From 3b1e0086fd86ab32cede29c21990cbefca26c2c6 Mon Sep 17 00:00:00 2001 From: DiSlord Date: Mon, 3 May 2021 08:55:30 +0300 Subject: [PATCH] Code style --- si4468.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/si4468.c b/si4468.c index 20023ec..d5a9da5 100644 --- a/si4468.c +++ b/si4468.c @@ -1093,7 +1093,7 @@ void set_RSSI_comp(void) } -bool SI4463_offset_active = false; +static bool SI4463_offset_active = false; static void SI4463_set_offset(int16_t offset){ // Set properties: MODEM_FREQ_OFFSET // Number of properties: 2 @@ -1118,14 +1118,13 @@ static void SI4463_set_offset(int16_t offset){ } // Set offset for frequency -void si_set_offset(int16_t offset) -{ +void si_set_offset(int16_t offset) { SI4463_offset_value = offset; SI4463_set_offset(offset); } + // Set additional offset for fm modulation output -void si_fm_offset(int16_t offset) -{ +void si_fm_offset(int16_t offset) { SI4463_set_offset(offset + SI4463_offset_value); }