From 960595adeea059ea1edeef075e2251ce9f116495 Mon Sep 17 00:00:00 2001 From: Linus Date: Fri, 25 Dec 2020 20:19:28 +0100 Subject: [PATCH] Show proper model name --- src/device.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/device.rs b/src/device.rs index 26623edd..e59bd5b4 100644 --- a/src/device.rs +++ b/src/device.rs @@ -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 { @@ -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 } } }