Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing P5V0MP monitoring #141

Merged
merged 1 commit into from
Jan 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/rf_channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,12 +359,8 @@ impl Devices {
.get_voltage(ads7924::Channel::Three)
.expect("Power monitor did not respond");

// Configure alarm thresholds for the P5V0_MP signal.
// Ensure that P5V0MP remains valid. Note that
// the 5V rail is divided by 2.5 before entering the ADC.
ads7924
.set_thresholds(ads7924::Channel::Three, 0.0, 6.5 / 2.5)
.expect("Power monitor failed to set thresholds");
// Note: Due to hardware limitations, the ADS7924 ALERT output is not used. Refer to
// https://github.com/quartiq/booster/issues/130 for more information.

// Verify that there is no active alarm condition.
assert!(ads7924.clear_alarm().expect("Failed to clear alarm") == 0);
Expand Down