Skip to content

Length not divisible by 3! #2

@donpdonp

Description

@donpdonp

it looks like last night's recording has hit an edge-case.

python cms50dplus.py -s '2015-09-28 22:00:00'  RECORDED /dev/ttyUSB0 "out-`date --iso-8601=seconds`.csv"
Saving recorded data...
Please wait as the latest session is downloaded...
Traceback (most recent call last):
  File "cms50dplus.py", line 327, in <module>
    dumpRecordedData(args.starttime, args.serialport, args.output)
  File "cms50dplus.py", line 302, in dumpRecordedData
    for recordedData in oximeter.getRecordedData(starttime):
  File "cms50dplus.py", line 251, in getRecordedData
    raise Exception("Length not divisible by 3!")
Exception: Length not divisible by 3!

I adjusted the error message to show the length
"Length 253 not divisible by 3!"

any ideas whats going on with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions