mirror of
https://github.com/daniviga/bite.git
synced 2024-11-22 21:16:12 +01:00
Fix eeprom_prog.ino indent
This commit is contained in:
parent
09cf23554a
commit
648608525d
|
@ -4,7 +4,8 @@
|
|||
#define ERASE_FIRST 0
|
||||
|
||||
const byte mac[] = {
|
||||
0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
|
||||
0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED
|
||||
};
|
||||
const char serial[] = "abcd1234";
|
||||
|
||||
struct netConfig {
|
||||
|
@ -24,7 +25,7 @@ void setup() {
|
|||
; // wait for serial port to connect. Needed for native USB port only
|
||||
}
|
||||
|
||||
#if ERASE_FIRST
|
||||
#if ERASE_FIRST
|
||||
// initialize the LED pin as an output.
|
||||
pinMode(13, OUTPUT);
|
||||
// turn the LED on while erasing
|
||||
|
@ -34,11 +35,10 @@ void setup() {
|
|||
}
|
||||
// turn the LED on when we're done
|
||||
digitalWrite(13, LOW);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
int eeAddress = 0; //Location we want the data to be put.
|
||||
|
||||
//One simple call, with the address first and the object second.
|
||||
EEPROM.put(eeAddress, mac);
|
||||
eeAddress += sizeof(mac);
|
||||
EEPROM.put(eeAddress, serial);
|
||||
|
|
Loading…
Reference in New Issue
Block a user