Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Add missing import
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
bihanssen committed Oct 24, 2019
1 parent d7d0c35 commit db6e7dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nordicsemi/lister/windows/structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def __str__(self):
def __repr__(self):
return "<GUID: {}>".format(str(self))


assert ctypes.sizeof(_GUID) == 16


Expand Down Expand Up @@ -118,14 +119,15 @@ def __init__(self):
super(ctypes.Structure, self).__init__()
self.cbSize = ctypes.sizeof(self)


class ctypesInternalGUID:
def __init__(self, bytes):
self._internal = bytes
def __str__(self):
return self._internal.raw

def __bytes__(self):
return self._internal.raw


DeviceInfoData.size = DeviceInfoData.cbSize
DeviceInfoData.dev_inst = DeviceInfoData.DevInst
DeviceInfoData.class_guid = DeviceInfoData.ClassGuid
Expand Down
1 change: 1 addition & 0 deletions tests/bdd/steps/dfu_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import logging
import os
import subprocess
import time

from click.testing import CliRunner
from behave import then, given
Expand Down

0 comments on commit db6e7dd

Please sign in to comment.