Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.79 KB | None | 0 0
  1. void ESP8266_SimpleOTA::setDebug(uint8_t debugType, bool val) {
  2.   switch (debugType) {
  3.     case QUI CHE METTO:
  4.       if(val){
  5.         #ifndef OTA_DEBUG
  6.          #define OTA_DEBUG
  7.         #endif
  8.       } else{
  9.         #ifdef OTA_DEBUG
  10.           #undef OTA_DEBUG
  11.         #endif  
  12.       }
  13.      
  14.     case QUI CHE METTO:  
  15.       if(val){
  16.         #ifndef OTA_MINIMAL_DEBUG
  17.          #define OTA_MINIMAL_DEBUG
  18.         #endif
  19.       } else{
  20.         #ifdef OTA_MINIMAL_DEBUG
  21.           #undef OTA_MINIMAL_DEBUG
  22.         #endif  
  23.       }
  24.    
  25.     case QUI CHE METTO:  
  26.       if(val){
  27.         #ifndef OTA_SHOW_CHANGELOG
  28.          #define OTA_SHOW_CHANGELOG
  29.         #endif
  30.       } else{
  31.         #ifdef OTA_SHOW_CHANGELOG
  32.           #undef OTA_SHOW_CHANGELOG
  33.         #endif  
  34.       }
  35.   }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement