Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how change module in user_config.h #569

Closed
zhilly opened this issue Jul 1, 2017 · 4 comments
Closed

how change module in user_config.h #569

zhilly opened this issue Jul 1, 2017 · 4 comments

Comments

@zhilly
Copy link

zhilly commented Jul 1, 2017

Hey there,

I've downloaded the last source code 5.2.3 20170630 and try to editing user_config.h from sonoff basic to ch4 module but i don't find this setting. because i want flash a 4ch module not the basic one.

someone can help me?

thx

@ferbulous
Copy link

you can change to 4ch module later after you flash it
would be nice to know how to properly select the device type before flashing, anyone can help?

@SwiftNick
Copy link

At the top of sonoff.ino (Line 47)

#define MODULE                 SONOFF_BASIC // [Module] Select default model

it can be any of the models defined in sonoff_template.h

// Supported hardware modules
enum module_t {
  SONOFF_BASIC,
  SONOFF_RF,
  SONOFF_SV,
  SONOFF_TH,
  SONOFF_DUAL,
  SONOFF_POW,
  SONOFF_4CH,
  S20,
  SLAMPHER,
  SONOFF_TOUCH,
  SONOFF_LED,
  CH1,
  CH4,
  MOTOR,
  ELECTRODRAGON,
  EXS_RELAY,
  WION,
  WEMOS,
  SONOFF_DEV,
  H801,
  SONOFF_SC,
  MAXMODULE };

@arendst
Copy link
Owner

arendst commented Jul 1, 2017

No need to change anything in source or user_config.h

Just load the default firmware; open the webpage and configure desired module. This way the code is unchanged and any new version can be uploaded as is.

@zhilly
Copy link
Author

zhilly commented Jul 2, 2017

okey thx for all i had fear before i flash it.

@zhilly zhilly closed this as completed Jul 2, 2017
arendst added a commit that referenced this issue May 1, 2018
5.13.0a
 * Add define MODULE for user selecting default model although
it preferably should not be changed (#569, #2589)
curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
5.13.0a
 * Add define MODULE for user selecting default model although
it preferably should not be changed (arendst#569, arendst#2589)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants