From a11ce3651c17050bfb0364b8e47bf8fd3fd72d32 Mon Sep 17 00:00:00 2001 From: Roy_01 Date: Thu, 18 Jul 2024 16:16:20 +0800 Subject: [PATCH] fix: cpg init: tw1508 about 1mA --- cpg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpg.c b/cpg.c index f7efcb8..360c6be 100644 --- a/cpg.c +++ b/cpg.c @@ -14,9 +14,9 @@ #define VERSION_DATE_YEAR 24 #define VERSION_DATE_MONTH 7 -#define VERSION_DATE_DAY 10 -#define VERSION_DATE_HOUR 11 -#define VERSION_DATE_MINUTE 58 +#define VERSION_DATE_DAY 18 +#define VERSION_DATE_HOUR 16 +#define VERSION_DATE_MINUTE 16 static void cis_version(uint8_t *ins, uint16_t size) { NRF_LOG_INFO("%s", __FUNCTION__); @@ -103,7 +103,7 @@ const elite_instance_t cpg_elite_instance = { const elite_instance_t *cpg_init(void) { tw1508_init(); - tw1508_set(0, 0); + tw1508_set(5, 5);//5*0.23= 1.15mA, formula:value*0.23=mA return &cpg_elite_instance; }