Timeline for Confusion with polling data by an MCU using UART
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 12, 2024 at 1:33 | vote | accept | user1245 | ||
| Mar 7, 2024 at 20:23 | comment | added | user1245 | @jusaca Im also not using any multi-threading so being a non-reentrant function is not a problem. | |
| Mar 7, 2024 at 10:33 | answer | added | jusaca | timeline score: 0 | |
| Mar 7, 2024 at 10:22 | comment | added | jusaca | As the buffer is "static", it will stay in memory and pointers to it will still work. The function simply is not reentrant, because it will use the same memory area for each call. | |
| Mar 7, 2024 at 9:54 | comment | added | KarelPeeters | Careful, there's a bug in this code! You can't allocate an array on the stack and then return a pointer to it, the caller will then not be allowed to read anything from it. See this question for more and possible workarounds. | |
| Mar 7, 2024 at 7:50 | history | became hot network question | |||
| Mar 7, 2024 at 0:14 | answer | added | Justme | timeline score: 4 | |
| Mar 7, 2024 at 0:08 | answer | added | Dirceu Rodrigues Jr | timeline score: 4 | |
| Mar 6, 2024 at 23:49 | history | asked | user1245 | CC BY-SA 4.0 |