From 21dd7e7fdafd58501cbc7f57615a18d81683ed3c Mon Sep 17 00:00:00 2001 From: Marcus Date: Thu, 12 Sep 2024 15:35:24 +0200 Subject: [PATCH] Added the CFBL device type --- src/platform.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platform.c b/src/platform.c index aad01c4..2688985 100644 --- a/src/platform.c +++ b/src/platform.c @@ -74,7 +74,8 @@ int platformInitByDeviceType() { pmConfig.hasCharger = true; pmConfig.hasVbatSink = true; - } else if (0 == strcmp(deviceType, "CF21")) { + } else if ((0 == strcmp(deviceType, "CF21")) || + (0 == strcmp(deviceType, "C21B"))) { has_rfx2411n = true; pmConfig.vbatFactor = ((3.0 / 2.0) / (100.0 / (100.0 + 200.0))); pmConfig.adcPrescalingSetup = ADC_CONFIG_INPSEL_AnalogInputTwoThirdsPrescaling;