From 5ddd4094633a91e805d1236421e55ad23d510b1f Mon Sep 17 00:00:00 2001 From: Nunu Date: Fri, 12 Jan 2024 17:04:29 +0100 Subject: [PATCH] messenger enabled, fm radio direction working. --- Makefile | 6 +++--- driver/bk1080.c | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f1d9a8b..2e3e003 100644 --- a/Makefile +++ b/Makefile @@ -49,9 +49,9 @@ ENABLE_SCAN_RANGES := 1 ENABLE_SPECTRUM_COPY_VFO := 1 ENABLE_SPECTRUM_SHOW_CHANNEL_NAME := 1 ENABLE_SPECTRUM_CHANNEL_SCAN := 1 -ENABLE_MESSENGER := 0 -ENABLE_MESSENGER_DELIVERY_NOTIFICATION := 0 -ENABLE_MESSENGER_NOTIFICATION := 0 +ENABLE_MESSENGER := 1 +ENABLE_MESSENGER_DELIVERY_NOTIFICATION := 1 +ENABLE_MESSENGER_NOTIFICATION := 1 ENABLE_MESSENGER_UART := 0 ############################################################# diff --git a/driver/bk1080.c b/driver/bk1080.c index f447bae..5d4cdc4 100644 --- a/driver/bk1080.c +++ b/driver/bk1080.c @@ -116,7 +116,6 @@ void BK1080_TuneNext(bool direction) uint16_t reg_11; uint16_t reg_02; - reg_02 = BK1080_ReadRegister(BK1080_REG_02_POWER_CONFIGURATION); reg_11 = BK1080_ReadRegister(BK1080_REG_11); @@ -126,7 +125,7 @@ void BK1080_TuneNext(bool direction) // seek bit 1, mute, direction BK1080_WriteRegister( - BK1080_REG_02_POWER_CONFIGURATION, (reg_02 | (1u << 8) | (direction << 9) | (1u << 14) ) + BK1080_REG_02_POWER_CONFIGURATION, (1u << 0) | (1u << 8) | (direction << 9) | (1u << 14) ); // wait until we find the channel