Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Documentation] Debugging/simulating LFS #150

Closed
v-p-b opened this issue Dec 10, 2022 · 2 comments
Closed

[Documentation] Debugging/simulating LFS #150

v-p-b opened this issue Dec 10, 2022 · 2 comments

Comments

@v-p-b
Copy link

v-p-b commented Dec 10, 2022

Related to #62

I was trying to get the LSF-based TOTP face to work, but couldn't make it parse the .txt file. It would be nice to know how to place files on the LFS of the simulator, so issues related to file format can be debugged more easily.

@wryun
Copy link
Contributor

wryun commented Dec 11, 2022

It's impossible (AFAIK) to use a serial connection to put files on the watch due to #117

I've put TOTP URLs on my watch by changing the firmware to write the files to LFS (i.e. hard-code in firmware), then replacing the firmware with the normal one. Yuk :(

The simulator has a pretend serial connection in the visible console, so you should be able to use echo ... >> totp_uris.txt as documented in https://github.com/joeycastillo/Sensor-Watch/blob/main/movement/watch_faces/complication/totp_face_lfs.c

If you then move to the totp face, any errors it has while parsing the file should come out on the same console.

@v-p-b
Copy link
Author

v-p-b commented Dec 11, 2022

@wryun Oh OK, thanks for the heads-up, so it wasn't my URL's!

Also, the second part of your comment answers my question, so I'm closing this.

@v-p-b v-p-b closed this as completed Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants