Skip to content

Commit

Permalink
Cleaning code
Browse files Browse the repository at this point in the history
  • Loading branch information
plutec committed Jun 11, 2020
1 parent 9aa0954 commit 2c115ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
//#define VERSION_FW "0.5(shutterFW)"
#define NAME_FW "shutterFW"

#define DEBUG //Comment to remove debug via MQTT
#define DEBUG_TOPIC "persiana/debug"
//#define DEBUG //Comment to remove debug via MQTT
//#define DEBUG_TOPIC "persiana/debug"

//Available hardware devices
#define KINGART_Q4
//#define OTHER_BOARD
//#define KINGART_Q4
#define OTHER_BOARD

#endif // config_h
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ void moveToPosition(uint8_t percent, uint8_t alexa_value) {
Serial.flush();
#endif
#if defined(OTHER_BOARD)
uint8_t current_percent;
//percent = 100-percent;
if (config.getCurrentPosition() == percent) { //In the requested position
//Do nothing
Expand Down

0 comments on commit 2c115ba

Please sign in to comment.