Skip to content

Commit 1772a3f

Browse files
committed
Add comments
1 parent d4165fa commit 1772a3f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ledger_device_sdk/src/nbgl/nbgl_home_and_settings.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ impl<'a> NbglHomeAndSettings {
120120
}
121121
}
122122

123+
/// Show the home screen and settings page.
124+
/// This function will block until an APDU is received or the user quits the app.
125+
/// DEPRECATED as it constraints to refresh screen for every received APDU.
126+
/// Use `display` instead.
123127
pub fn show<T: TryFrom<ApduHeader>>(&mut self) -> Event<T>
124128
where
125129
Reply: From<<T as TryFrom<ApduHeader>>::Error>,
@@ -200,6 +204,8 @@ impl<'a> NbglHomeAndSettings {
200204
}
201205
}
202206

207+
/// Show the home screen and settings page.
208+
/// This function returns immediately after the screen is displayed.
203209
pub fn display(&mut self) {
204210
unsafe {
205211
self.info_contents_ptr = self

0 commit comments

Comments
 (0)