Skip to content

Commit 960595a

Browse files
committed
Show proper model name
1 parent aa8c319 commit 960595a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/device.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use std::env;
22
use std::fmt;
33
use lazy_static::lazy_static;
44
use crate::input::TouchProto;
5+
use std::fmt::Display;
56

67
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
78
pub enum Model {
@@ -55,7 +56,7 @@ impl fmt::Display for Model {
5556
Model::Glo => write!(f, "Glo"),
5657
Model::TouchC => write!(f, "Touch C"),
5758
Model::TouchAB => write!(f, "Touch A/B"),
58-
Model::Remarkable => write!(f, "reMarkable Gen 1"),
59+
Model::Remarkable => libremarkable::device::CURRENT_DEVICE.model.fmt(f), // Can be Gen 1 or Gen 2
5960
}
6061
}
6162
}

0 commit comments

Comments
 (0)