From 16f34ac3a8d06f3405116be6081ecda34ecb8aac Mon Sep 17 00:00:00 2001 From: losehu Date: Sun, 2 Feb 2025 16:19:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=83=8C=E5=85=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 2 +- tle/tle.c | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f560083..e9d756b 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,7 @@ ENABLE_4732SSB =0 ENABLE_DOPPLER =1 ENABLE_TLE = 1 ############################################################# -PACKED_FILE_SUFFIX = LOSEHU01D +PACKED_FILE_SUFFIX = LOSEHU132K ifeq ($(ENABLE_PINYIN),1) ENABLE_CHINESE_FULL=4 endif diff --git a/tle/tle.c b/tle/tle.c index 2893e8c..9896010 100644 --- a/tle/tle.c +++ b/tle/tle.c @@ -95,7 +95,7 @@ Mode before_mode; uint8_t local_selected=1; uint8_t local_inflag=0; - +uint8_t BACK_ON=1; uint8_t switch_mode=0; Mode mode=SELECT; satlist sate_info; @@ -1333,7 +1333,12 @@ void LOCAL_KEY() } void TLE_KEY() { - + if(my_kbd.current==KEY_SIDE2) { + if(BACK_ON) + PWM_PLUS0_CH0_COMP = 0<<2; + else PWM_PLUS0_CH0_COMP = 255<<2; + BACK_ON=1-BACK_ON; + } if(mode==SATE||mode==SELECT #ifdef ENABLE_PIC || mode==PIC