Skip to content

Commit

Permalink
fix for pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
Chr157i4n committed Nov 13, 2023
1 parent 17e6a24 commit fb0c253
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
14 changes: 1 addition & 13 deletions src/TMC_2209/TMC_2209_comm.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
#pylint: disable=invalid-name
#pylint: disable=import-error
#pylint: disable=too-many-lines
#pylint: disable=too-many-arguments
#pylint: disable=too-many-public-methods
#pylint: disable=too-many-branches
#pylint: disable=too-many-instance-attributes
"""
TMC_2209 stepper driver communication module
"""

import time
from enum import Enum
import math
import statistics
import threading
from RPi import GPIO
from .TMC_2209_uart import TMC_UART
from .TMC_2209_logger import TMC_logger, Loglevel
from .TMC_2209_logger import Loglevel
from . import TMC_2209_reg as tmc_reg
from . import TMC_2209_math as tmc_math



Expand Down
5 changes: 3 additions & 2 deletions src/TMC_2209/TMC_2209_uart.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ def __init__(self, tmc_logger, serialport, baudrate, mtr_id = 0):
self.tmc_logger.log(""""+str(serialport)+" does not exist.
You need to activate the serial port with \"sudo raspi-config\"""")
if errnum == 13:
self.tmc_logger.log("""you have no permission to use the serial port. You may need to add
your user to the dialout group with \"sudo usermod -a -G dialout pi\"""")
self.tmc_logger.log("""you have no permission to use the serial port.
You may need to add your user to the dialout group
with \"sudo usermod -a -G dialout pi\"""")

self.mtr_id = mtr_id
self.ser.BYTESIZES = 1
Expand Down

0 comments on commit fb0c253

Please sign in to comment.