-
Notifications
You must be signed in to change notification settings - Fork 34
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
ii.<module>.help() truncated to 1024chars #264
Comments
Hrmmm... The brute force solution is just allocating a bigger buffer (at the expense of runtime memory). We could add some complex code to break a string into 1024byte chunks here. This would require an arbitrary delay, waiting for the usb buffer to be cleared, or a callback from the usb tx driver, or some kind of queue system. This seems like massive overkill to me. We could break up the We could shorten the Other ideas? How small of a use-case is this? |
This sounds like probably the easiest thing - separate sections for commands / getters / event handler example? However implementing all TXo commands would probably run into this limit for each section. |
@csboling i just renamed this issue to reflect the problem so i stop skipping over it bc it says kria :~) |
I'm closing this one as it feels like too much to be asking of crow. We'd need some drastic restructuring of the serial stream and/or i2c help saving, which feels outside the scope for this small of an issue. |
Reopening as an extra 1kB of RAM doesn't actually seem like a big problem after further usage. |
With crow v1.0.2, in druid I see the following:
This only currently affects ii.kria.help because the string is long enough that it can't be sent in a single
Caw_send_luachunk
. Not sure what the preferred way is to handle this in general.The text was updated successfully, but these errors were encountered: