Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Various fixes for sx126x #44

Merged
merged 3 commits into from
Nov 28, 2023
Merged

Various fixes for sx126x #44

merged 3 commits into from
Nov 28, 2023

Conversation

plaes
Copy link
Contributor

@plaes plaes commented Nov 28, 2023

In its current form it was not really possible to use sx126x

Copy link
Collaborator

@lucasgranberg lucasgranberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense to me

// SX1261/2 can use optional DC-DC to reduce power usage,
// but this is related to the hardware implementation of the board.
if self.config.use_dcdc {
let reg_data = [OpCode::SetRegulatorMode.value(), RegulatorMode::UseDCDC.value()];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the default if regulator mode is not set? Also can we trust the default? Should here be an else clause?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default is to use LDO

@lucasgranberg lucasgranberg merged commit cb9d293 into embassy-rs:main Nov 28, 2023
1 check passed
@plaes plaes deleted the sx1262 branch November 29, 2023 09:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants