Skip to content

Commit fa70dbe

Browse files
fixup! defining interface settings in a struct
1 parent 4c903f1 commit fa70dbe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/settings/settings.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ namespace models {
2727
char pwd[64]; // Max length of password is 63 + \0
2828
};
2929

30+
#if defined(BOARD_HAS_ETHERNET)
3031
// this struct represents an ip address in its simplest form.
3132
// TODO should this stay here?
3233
// TODO it may be better to check for IPV6 compatibility to reduce size
@@ -46,6 +47,7 @@ namespace models {
4647
unsigned long timeout;
4748
unsigned long response_timeout;
4849
};
50+
#endif // BOARD_HAS_ETHERNET
4951

5052
struct CellularSetting {
5153
char pin[8];

0 commit comments

Comments
 (0)