594167
From 3821f3570e28a6f169bf539086882b34a6a7beb8 Mon Sep 17 00:00:00 2001
594167
From: Yu Watanabe <watanabe.yu+github@gmail.com>
594167
Date: Fri, 28 Jan 2022 11:08:43 +0900
594167
Subject: [PATCH] test: frequency in mouse DPI is optional
594167
594167
Prompted by #22278.
594167
594167
(cherry picked from commit e912326e05cf753ddb703be0666336ee3386d6e0)
594167
594167
Related: #2087778
594167
---
594167
 hwdb.d/parse_hwdb.py | 2 +-
594167
 1 file changed, 1 insertion(+), 1 deletion(-)
594167
594167
diff --git a/hwdb.d/parse_hwdb.py b/hwdb.d/parse_hwdb.py
594167
index 0268bf9580..aef0331ace 100755
594167
--- a/hwdb.d/parse_hwdb.py
594167
+++ b/hwdb.d/parse_hwdb.py
594167
@@ -121,7 +121,7 @@ def hwdb_grammar():
594167
 def property_grammar():
594167
     ParserElement.setDefaultWhitespaceChars(' ')
594167
 
594167
-    dpi_setting = Group(Optional('*')('DEFAULT') + INTEGER('DPI') + Suppress('@') + INTEGER('HZ'))('SETTINGS*')
594167
+    dpi_setting = Group(Optional('*')('DEFAULT') + INTEGER('DPI') + Optional(Suppress('@') + INTEGER('HZ')))('SETTINGS*')
594167
     mount_matrix_row = SIGNED_REAL + ',' + SIGNED_REAL + ',' + SIGNED_REAL
594167
     mount_matrix = Group(mount_matrix_row + ';' + mount_matrix_row + ';' + mount_matrix_row)('MOUNT_MATRIX')
594167
     xkb_setting = Optional(Word(alphanums + '+-/@._'))