1 Star 0 Fork 11

starlet_dx/fprintd

forked from src-openEuler/fprintd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-Don-t-try-to-clear-storage-on-devices-without-intern.patch 1014 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 3633dbaa630d4734f3c63721eecbf935315cb80d Mon Sep 17 00:00:00 2001
From: Julian <julian@aternos.org>
Date: Sun, 1 May 2022 00:29:09 +0200
Subject: [PATCH 01/14] Don't try to clear storage on devices without internal
storage This change prevents warnings like 'Failed to clear storage before
first enrollment: Device has no storage.'.
---
src/device.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/device.c b/src/device.c
index df1e782..b9de3ee 100644
--- a/src/device.c
+++ b/src/device.c
@@ -2209,7 +2209,8 @@ fprint_device_enroll_start (FprintDBusDevice *dbus_dev,
priv->enroll_data = finger;
priv->current_action = ACTION_ENROLL;
- if (!fp_device_has_feature (priv->dev, FP_DEVICE_FEATURE_STORAGE_LIST) &&
+ if (fp_device_has_feature (priv->dev, FP_DEVICE_FEATURE_STORAGE) &&
+ !fp_device_has_feature (priv->dev, FP_DEVICE_FEATURE_STORAGE_LIST) &&
is_first_enrollment (rdev))
{
g_autoptr(GError) clear_err = NULL;
--
2.37.1.windows.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/starlet-dx/fprintd.git
git@gitee.com:starlet-dx/fprintd.git
starlet-dx
fprintd
fprintd
master

搜索帮助

371d5123 14472233 46e8bd33 14472233