Comments (4)
I have also attempted to adjust my terminal settings to add up to a 50ms delay between characters, and it helps, but it will still miss characters maybe 1 / 10 times
from microshell.
awesome library btw :D I like it alot! I will be trying to implement a command history, so I will do a pull request if I can get it to work!
from microshell.
Ok, I found the cause was that there was something else that was blocking in the main loop where ush_service is running.
This may indicate that the ush_service() would run best in an interrupt context on a single threaded MCU
from microshell.
Yes, library is not thread-safe, so be careful in multi-thread environment.
And calling ush_service from interrupt context is a very bad idea...
Regarding the missing characters, please make sure that in the read/write interfaces You will return 0 in case of not successful write (e.g. buffer overflow) and 1 in case of success (see examples). If You return 0 library will take to write/read attempt on the next service loop.
from microshell.
Related Issues (10)
- [Feature] Add login session manager
- [BUG] Argument format error in xxd command (ush_cmd_xxd.c)
- this operator is not allowed in an integral constant expression HOT 1
- [Feature] Customizable global PATH
- [Example] Add bare-metal example with STM32 target HOT 1
- Failed to build demo_linux HOT 3
- [Feature] Add support for command cursor (left, right arrows)
- [Feature] Add support for commands history (up/down arrows) HOT 4
- [Bug] using ush_print multiple times successively only prints the last command issued HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microshell.