Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ESP8266_SimpleOTA::setDebug(uint8_t debugType, bool val) {
- switch (debugType) {
- case QUI CHE METTO:
- if(val){
- #ifndef OTA_DEBUG
- #define OTA_DEBUG
- #endif
- } else{
- #ifdef OTA_DEBUG
- #undef OTA_DEBUG
- #endif
- }
- case QUI CHE METTO:
- if(val){
- #ifndef OTA_MINIMAL_DEBUG
- #define OTA_MINIMAL_DEBUG
- #endif
- } else{
- #ifdef OTA_MINIMAL_DEBUG
- #undef OTA_MINIMAL_DEBUG
- #endif
- }
- case QUI CHE METTO:
- if(val){
- #ifndef OTA_SHOW_CHANGELOG
- #define OTA_SHOW_CHANGELOG
- #endif
- } else{
- #ifdef OTA_SHOW_CHANGELOG
- #undef OTA_SHOW_CHANGELOG
- #endif
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement