Skip to content

Commit

Permalink
small flash config improvement plus more comments
Browse files Browse the repository at this point in the history
Conflicts:
	user/config.c
  • Loading branch information
tve committed Aug 20, 2015
1 parent bc063ef commit aa7eadb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion user/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ FlashConfig flashDefault = {
"esp-link\0 ", // hostname
0, 0x00ffffff, 0, // static ip, netmask, gateway
0, // log mode
0, // swap_uart
0, // swap_uart (don't by default)
1, 0, // tcp_enable, rssi_enable
"\0", // api_key
};
Expand Down
4 changes: 4 additions & 0 deletions user/config.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#ifndef CONFIG_H
#define CONFIG_H

// Flash configuration settings. When adding new items always add them at the end and formulate
// them such that a value of zero is an appropriate default or backwards compatible. Existing
// modules that are upgraded will have zero in the new fields. This ensures that an upgrade does
// not wipe out the old settings.
typedef struct {
uint32_t seq; // flash write sequence number
uint16_t magic, crc;
Expand Down

0 comments on commit aa7eadb

Please sign in to comment.