Switch Case Error #68
Closed
augustinemwendwa72
started this conversation in
Ideas
Replies: 2 comments
-
@augustinemwendwa72 I will have an in-depth look at this. Please clarify which function won't run unless len==0 because I can only see the if statement. From the look of things, the case statements are used to check which indices of the serial data we are at for it to do something e.g. extract distinct PM size values. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@augustinemwendwa72 if you think this is a bug, could you post the expected behaviour or correct procedure that can be reproduced? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @gideonmaina , Under fetchSensorPMS(String& s), we are switching "len" which is predefined with value 0.
Also here:
if (len == frame_len) {
unless frame_len ==0 the function will not execute.Beta Was this translation helpful? Give feedback.
All reactions