Timeline for Why does static member std::map reset ESP8266 when outside the .ino file?
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 10, 2017 at 20:55 | vote | accept | MayBee | ||
| Jan 10, 2017 at 14:37 | answer | added | Mikael Patel | timeline score: 0 | |
| Jan 10, 2017 at 10:40 | comment | added | MayBee | @Matt I believe I haven't tried that, but will check later on today. It's a bit strange since removing that line with a comment works fine. I can even add the same line to another method in the class (such as a new setData method, in that example up there) and it works properly... If I make the variable public, I can access it properly as well from outside the class. It probably has something to do with the constructor. | |
| Jan 10, 2017 at 8:40 | comment | added | Code Gorilla | Does accessing a static POD variable cause the same issue? | |
| Jan 10, 2017 at 8:13 | history | edited | MayBee | CC BY-SA 3.0 |
Added comment as to which line needs to be removed for the first version to work.
|
| Jan 10, 2017 at 8:04 | review | First posts | |||
| Jan 11, 2017 at 0:28 | |||||
| Jan 10, 2017 at 8:02 | history | asked | MayBee | CC BY-SA 3.0 |