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

Snake usually can not read highscore file #78

Open
Fensterbank opened this issue Aug 16, 2015 · 0 comments
Open

Snake usually can not read highscore file #78

Fensterbank opened this issue Aug 16, 2015 · 0 comments

Comments

@Fensterbank
Copy link
Contributor

In development I had problems reading the file so that 0 was returned by the atoi function in https://github.com/rad1o/f1rmware/blob/master/l0dables/snake.c#L335.
I found out that reading the variable helps (see https://github.com/rad1o/f1rmware/blob/master/l0dables/snake.c#L333), but now in production it still cannot read the file...
Does someone know, what's the matter and how to fix it?

PS: Saving the file works without problems, loading returns 0, which results in a displayed highscore of 1 on each game start, see https://github.com/rad1o/f1rmware/blob/master/l0dables/snake.c#L75.

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

1 participant