Skip to content

Commit

Permalink
Merge pull request #28 from SystemsCyber/ram-patch3
Browse files Browse the repository at this point in the history
Added device label while saving secrets.json
  • Loading branch information
jeremy-daily authored Sep 28, 2020
2 parents 96a1e88 + 92ee988 commit dd270fd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clientApp/CANLoggerClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ def provision(self):
if not ok:
return
try:
self.device_label_g = device_label[:5]
data = {'serial_number': base64.b64encode(serial_number).decode("ascii"),
'device_label': device_label[:5],
'device_public_key': base64.b64encode(device_public_key).decode("ascii"),
Expand Down Expand Up @@ -404,7 +405,7 @@ def save_security_list(self):
options |= QFileDialog.Detail
self.data_file_name, data_file_type = QFileDialog.getSaveFileName(self,
"Save File",
self.home_directory + "/" + "CAN Logger 3 Security List",
self.home_directory + "/" + "CAN Logger 3 Security List " + self.device_label_g,
"JSON Files (*.json);;All Files (*)",
options = options)
if self.data_file_name:
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit dd270fd

Please sign in to comment.