Skip to content

Commit

Permalink
Show proper model name
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusCDE committed Dec 25, 2020
1 parent aa8c319 commit 960595a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use std::env;
use std::fmt;
use lazy_static::lazy_static;
use crate::input::TouchProto;
use std::fmt::Display;

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

0 comments on commit 960595a

Please sign in to comment.