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

Init function hangs the application #70

Open
msufian9 opened this issue Jun 19, 2022 · 2 comments
Open

Init function hangs the application #70

msufian9 opened this issue Jun 19, 2022 · 2 comments

Comments

@msufian9
Copy link

It would be great if the init() function return something.....
because on startup/setup code, init() is called as per the suggestion, init() should be called before anything....
There is a scenario where the ch376 module fails, then the whole system will fail..
So it would be great if init() function return 0 of 1 showing weather the device is initialized successfully or not .

@djuseeq
Copy link
Owner

djuseeq commented Jun 21, 2022

Hi. did you use on UART or SPI interface? Hangs mean doesn't return from init function? This can be a good approach but in this moment you can verify the module with calling pingDevice() or getError() function.

@msufian9
Copy link
Author

I have used SPI interface with ESP32....
Hags mean the programme stop at the point where we are calling Init(). So the whole firmware stops there and the device does not work at all

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