Skip to content

Commit 66e7aa8

Browse files
committed
regulators: Allow the UART Power regulator field to never be read
It's a common pattern in tacd codebase to collect all Topics in a struct to make them available to e.g. the UI code. This field is not used, but should nevertheless be stored in the respective struct to keep the common pattern. Signed-off-by: Leonard Göhrs <[email protected]>
1 parent c7b81e5 commit 66e7aa8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/regulators.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ use reg::regulator_set;
6767

6868
pub struct Regulators {
6969
pub iobus_pwr_en: Arc<Topic<bool>>,
70+
#[allow(dead_code)]
7071
pub uart_pwr_en: Arc<Topic<bool>>,
7172
}
7273

0 commit comments

Comments
 (0)