Skip to content

Error when setting timeout on /start command #120

@BeeCoughs

Description

@BeeCoughs

I keep getting an error when running user.py and calling the /start command with a timeout argument (as in the tutorial)

Currently using a Cyton (no Daisy) with firmware v3.1.2

user.py plus the print plugin starts fine. Then when I try to run the start command I get an error that forces user.py to exit:

-------------BEGIN---------------

--> /start T:3
Traceback (most recent call last):
  File "user.py", line 232, in <module>
    lapse = int(s[string.find(s, "T:") + 2:])
AttributeError: module 'string' has no attribute 'find'
Closing Serial...
Deactivating Plugins...
Plugin PluginPrint deactivated.
User.py exiting...

As long as I run without the timeout argument, it seems to be fine.
Any ideas what might be going on? Happy to provide more info if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions