Skip to content

Commit

Permalink
formating and spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
drunsinn committed Mar 22, 2023
1 parent 1c9156b commit 6f6d728
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ These changes where made intentionally to make further development easier. See t
```
The results indicate that pyLSV2 should work with python 3.5 and even with 3.4 if you install
the packported modules argparse, enum and typing. While argpares is only used in the demo script
the other two are necessary. Therefore it should be possible to use pyLSV2 with the curretn version
the other two are necessary. Therefore it should be possible to use pyLSV2 with the current version
of [IronPython](https://ironpython.net/) if you install these two modules.

# Resources
Expand Down
4 changes: 2 additions & 2 deletions pyLSV2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,7 @@ def set_keyboard_access(self, unlocked: bool) -> bool:
:param unlocked: if ``True`` unlocks the keyboard so it can be used. If ``False``, input is set to locked
"""
if self.versions.is_tnc7():
self._logger.warning("this function might not be supportet on TNC7")
self._logger.warning("this function might not be supported on TNC7")

if not self.login(lc.Login.MONITOR):
self._logger.warning("clould not log in as user MONITOR")
Expand Down Expand Up @@ -1556,7 +1556,7 @@ def send_key_code(self, key_code: Union[lc.KeyCode, lc.OldKeyCode]) -> bool:
:param key_code: code number of the keyboard key
"""
if self.versions.is_tnc7():
self._logger.warning("this function might not be supportet on TNC7")
self._logger.warning("this function might not be supported on TNC7")

if not self.login(lc.Login.MONITOR):
self._logger.warning("clould not log in as user MONITOR")
Expand Down
2 changes: 1 addition & 1 deletion pyLSV2/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ class CMD(str, Enum):
requires MONITOR login priviliege"""

R_VR = "R_VR"
"""R_VR: read general info about the control itself. recive version.
"""R_VR: read general info about the control itself. receive version.
requires INSPECT login priviliege"""

R_WD = "R_WD"
Expand Down
2 changes: 1 addition & 1 deletion pyLSV2/dat_cls.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def is_tnc(self) -> bool:
def is_pilot(self) -> bool:
"""return ``True`` if control is a CNCPILOT640"""
return self._control_type == ControlType.LATHE_NEW

def is_tnc7(self) -> bool:
"""return ```True``` if control is a TNC7"""
return self._control_type == ControlType.TNC7
Expand Down
2 changes: 1 addition & 1 deletion pyLSV2/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def decode_file_system_info(
# flag_hidden = 0x08 # file is hidden
# flag_dir = 0x10 # identiier for directory / drive name
# flag_protected = 0x20 # identifier for write protetion
# flag_subdir = 0x40 # identidier for subdirectory / drive name
# flag_subdir = 0x40 # identifier for subdirectory / drive name
# flag_selected = 0x80 # file is selected (M-flag)
# flag_drive_protected = 0x20 # if flag_dir is set, drive is write protected

Expand Down
2 changes: 1 addition & 1 deletion scripts/lsv2_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
print("# Value of machine parameter for NC language: {:s}".format(lang))

if con.version.is_tnc7():
print("UI Interface test not availible on TNC7?")
print("UI Interface test not available on TNC7?")
else:
print("UI Interface")
print("# switch to mode manual")
Expand Down
6 changes: 3 additions & 3 deletions scripts/scope2csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

parser.add_argument(
"signals",
help="list of signal numbers to record. seperated by spaces",
help="list of signal numbers to record. separated by spaces",
nargs="+",
type=int,
)
Expand Down Expand Up @@ -90,7 +90,7 @@
selected_signals = args.signals
if sorted(selected_signals)[0] < 0:
logging.error(
"the selected signal numbers contain at least one negativ value: %d",
"the selected signal numbers contain at least one negative value: %d",
selected_signals[0],
)
sys.exit(-1)
Expand All @@ -115,7 +115,7 @@

if sorted(selected_signals)[-1] > len(availible_signals):
logging.error(
"the selected signal number is outside the rage of availible signals of %s",
"the selected signal number is outside the rage of available signals of %s",
len(availible_signals),
)
sys.exit(-10)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_key_press_sim(address: str, timeout: float):
lsv2.login(pyLSV2.Login.MONITOR)

if lsv2.versions.is_tnc7():
# key access not availible for tnc7?
# key access not available for tnc7?
pass
else:
assert lsv2.set_keyboard_access(False) is True
Expand Down

0 comments on commit 6f6d728

Please sign in to comment.