Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0857fe4

Browse files
設備名を修正
1 parent 64dccea commit 0857fe4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

txtToCsv.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import getopt
66

77
# キーワード
8-
KEYWORD_LIST = ['huawei', 'pixcel4a']
8+
KEYWORD_LIST = ['huawei', 'pixel4a']
99
# 処理ファイルに項目名のindex
1010
KEY_FROM = 50
1111
KEY_TO = 68
@@ -106,8 +106,8 @@ def create_data_from_file(file_name, keyword, device_code):
106106
for row in f.readlines():
107107
if row.find(device_code) > -1 and row.find('add device') == -1:
108108
key = str.strip(row[KEY_FROM:KEY_TO])
109-
# pixcel4aの特別のデータを集めないように
110-
if keyword == 'pixcel4a':
109+
# pixel4aの特別のデータを集めないように
110+
if keyword == 'pixel4a':
111111
if (key == 'ABS_MT_PRESSURE' and row[VALUE_FROM:VALUE_TO] == '00000000') or (
112112
key == 'ABS_MT_TRACKING_ID' and row[VALUE_FROM:VALUE_TO] == 'ffffffff'):
113113
continue

0 commit comments

Comments
 (0)