-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
sched: Fix readStorage when files do not exist #2996
Conversation
I'd noticed a similar issue with |
Looks good to me - @thyttan, @halemmerich any comments before I merge this? (mainly asking it's a "core" app, and the first non-Gordon merge) |
|
I don't see the point in increasing the version when the app itself is unchanged. Also have never done that, e.g. #2552 #2979 I can't say anything about Gadgetbridge |
It seems to me like the problem inside Gadgetbridge affects all similar interfaces. So lets not stop this PR from being merged because of it. I'll open a separate issue for that.
Fair enough :) I still think it's a good idea for the reason I wrote. But OK with me to merge also without. 👍 |
So the issue is that As @bobrippling says I think we should make sure It should be easy enough to modify without adding You can test on the console of the web browser with |
Yes, I believe commit b8813ab solved the missing-file problem, and means we see a callback fired and receive an empty string for the file. When I run: Util.readStorage("hi.txt", x => console.log("cb", JSON.stringify(x))) I get a callback with this log:
And The three bytes come through because in With the fix from b8813ab and the |
That sounds great to me! I've just added that change - also the code was in the IDE too so I've now changed that as well |
Ah great, thank you! |
see #2985