X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=decoders%2Fds1307%2Fpd.py;h=9b7a21f90e60e10110d0d3ecf9d7ec85d3d58647;hb=9fb04bdfa4a2fe0e5653d5922307696e29387dc0;hp=cb5fc13207647582cac86b2fb6ae0adc62147e0e;hpb=769ed325837271b76beca1e74a037cf8bb91f4b3;p=libsigrokdecode.git diff --git a/decoders/ds1307/pd.py b/decoders/ds1307/pd.py index cb5fc13..9b7a21f 100644 --- a/decoders/ds1307/pd.py +++ b/decoders/ds1307/pd.py @@ -15,13 +15,12 @@ ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License -## along with this program; if not, write to the Free Software -## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## along with this program; if not, see . ## import re import sigrokdecode as srd -from srdhelper import bcd2int +from common.srdhelper import bcd2int days_of_week = ( 'Sunday', 'Monday', 'Tuesday', 'Wednesday', @@ -75,7 +74,7 @@ class Decoder(srd.Decoder): ('warnings', 'Warnings', (28,)), ) - def __init__(self, **kwargs): + def __init__(self): self.state = 'IDLE' self.hours = -1 self.minutes = -1