Skip to content

Commit

Permalink
Merge pull request #99 from bitcraze/evoggy/add_cfbl_devicetype
Browse files Browse the repository at this point in the history
Added the CFBL device type
  • Loading branch information
evoggy authored Sep 12, 2024
2 parents d74b549 + 21dd7e7 commit 874e801
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 874e801

Please sign in to comment.