1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-07 16:23:38 +03:00
Dirk Mueller a2141803f1
Code size optimisation of ESP.getResetReason() (#7029)
* Code size optimisation of ESP.getResetReason()

doing if/else snakes for something that is a switch/case
is wasteful, as it repeatedly evaluates the same if() condition.
Also repeating strcpy_P is adding code bloat.

This simplification reduces size from 111 to 41 bytes.

* add break statement also to default case
2020-01-30 13:07:34 -08:00
..
2019-10-07 19:31:30 -03:00
2019-05-14 00:09:54 +02:00
2019-05-14 00:09:54 +02:00
2019-05-14 00:09:54 +02:00
2019-05-14 00:09:54 +02:00
2019-05-14 00:09:54 +02:00
2019-11-04 23:14:35 -03:00
2019-03-14 11:19:21 +01:00
2019-10-31 14:09:52 +01:00
2019-10-31 14:09:52 +01:00
2019-05-14 00:09:54 +02:00
2019-05-14 00:09:54 +02:00
2019-05-14 00:09:54 +02:00
2019-11-04 23:14:35 -03:00
2019-05-14 00:09:54 +02:00
2019-05-14 00:09:54 +02:00
2019-05-14 00:09:54 +02:00
2019-05-14 00:09:54 +02:00
2019-12-16 14:42:16 +01:00
2019-05-14 00:09:54 +02:00
2014-12-01 00:34:28 +03:00
2019-05-14 00:09:54 +02:00