diff --git a/sonoff/i18n.h b/sonoff/i18n.h index cee36cd89..96f4db54e 100644 --- a/sonoff/i18n.h +++ b/sonoff/i18n.h @@ -473,7 +473,7 @@ #define D_CMND_ZIGBEE_PROBE "ZigbeeProbe" // Commands xdrv_25_A4988_Stepper.ino - #ifdef USE_A4988_Stepper + #ifdef USE_A4988_STEPPER #define D_CMND_MOTOR "MOTOR" #define D_JSON_MOTOR_MOVE "doMove" #define D_JSON_MOTOR_ROTATE "doRotate" diff --git a/sonoff/my_user_config.h b/sonoff/my_user_config.h index 0c45cdde4..a046d92f5 100644 --- a/sonoff/my_user_config.h +++ b/sonoff/my_user_config.h @@ -541,7 +541,7 @@ // #define USE_ALECTO_V2 // Add support for decoding Alecto V2 sensors like ACH2010, WS3000 and DKW2012 weather stations using 868MHz RF sensor receiver (+1k7 code) //#define USE_HRE // Add support for Badger HR-E Water Meter (+1k4 code) -//#define USE_A4988_Stepper // Add support for A4988 stepper-motor-driver-circuit (+10k5 code) +//#define USE_A4988_STEPPER // Add support for A4988/DRV8825 stepper-motor-driver-circuit (+10k5 code) // -- End of general directives ------------------- diff --git a/sonoff/sonoff_post.h b/sonoff/sonoff_post.h index c25b961c3..aea346dba 100644 --- a/sonoff/sonoff_post.h +++ b/sonoff/sonoff_post.h @@ -268,7 +268,7 @@ char* ToHex_P(const unsigned char * in, size_t insz, char * out, size_t outsz, c #undef USE_RF_SENSOR // Disable support for RF sensor receiver (434MHz or 868MHz) (+0k8 code) #undef USE_SM16716 // Disable support for SM16716 RGB LED controller (+0k7 code) #undef USE_HRE // Disable support for Badger HR-E Water Meter (+1k4 code) -#undef USE_A4988_Stepper // Disable support for A4988_Stepper +#undef USE_A4988_STEPPER // Disable support for A4988_Stepper #undef DEBUG_THEO // Disable debug code #undef USE_DEBUG_DRIVER // Disable debug code #endif // FIRMWARE_CLASSIC diff --git a/sonoff/sonoff_template.h b/sonoff/sonoff_template.h index 3061ae366..0af77e6b3 100644 --- a/sonoff/sonoff_template.h +++ b/sonoff/sonoff_template.h @@ -731,7 +731,7 @@ const uint8_t kGpioNiceList[] PROGMEM = { GPIO_HRE_CLOCK, GPIO_HRE_DATA, #endif -#ifdef USE_A4988_Stepper +#ifdef USE_A4988_STEPPER GPIO_A4988_DIR, // A4988 direction pin GPIO_A4988_STP, // A4988 step pin // folowing are not mandatory diff --git a/sonoff/support_features.ino b/sonoff/support_features.ino index 0589433f7..07a70ab17 100644 --- a/sonoff/support_features.ino +++ b/sonoff/support_features.ino @@ -444,7 +444,7 @@ void GetFeatures(void) #ifdef USE_INA226 feature5 |= 0x00000010; // xsns_54_ina226.ino #endif -#ifdef USE_A4988_Stepper +#ifdef USE_A4988_STEPPER feature5 |= 0x00000020; // xdrv_25_A4988.ino #endif #ifdef USE_DDS2382 diff --git a/sonoff/xdrv_25_A4988_Stepper.ino b/sonoff/xdrv_25_A4988_Stepper.ino index f80cc1a81..99bcde51b 100644 --- a/sonoff/xdrv_25_A4988_Stepper.ino +++ b/sonoff/xdrv_25_A4988_Stepper.ino @@ -18,7 +18,7 @@ along with this program. If not, see . */ -#ifdef USE_A4988_Stepper +#ifdef USE_A4988_STEPPER #include #define XDRV_25 25 diff --git a/tools/decode-status.py b/tools/decode-status.py index 92437b864..39e2b96e3 100755 --- a/tools/decode-status.py +++ b/tools/decode-status.py @@ -170,7 +170,7 @@ a_features = [[ "USE_MAX31865","USE_CHIRP","USE_SOLAX_X1","USE_PAJ7620" ],[ "USE_BUZZER","USE_RDM6300","USE_IBEACON","USE_SML_M", - "USE_INA226","USE_A4988_Stepper","USE_DDS2382","USE_SM2135", + "USE_INA226","USE_A4988_STEPPER","USE_DDS2382","USE_SM2135", "USE_SHUTTER","USE_PCF8574","USE_DDSU666","USE_DEEPSLEEP", "USE_SONOFF_SC","USE_SONOFF_RF","","", "","","","",