mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-29 05:21:37 +03:00
Migrate from astyle to clang-format (#8464)
This commit is contained in:
committed by
Max Prokhorov
parent
46190b61f1
commit
19b7a29720
@ -11,9 +11,7 @@
|
||||
void setup() {
|
||||
EEPROM.begin(512);
|
||||
// write a 0 to all 512 bytes of the EEPROM
|
||||
for (int i = 0; i < 512; i++) {
|
||||
EEPROM.write(i, 0);
|
||||
}
|
||||
for (int i = 0; i < 512; i++) { EEPROM.write(i, 0); }
|
||||
|
||||
// turn the LED on when we're done
|
||||
pinMode(13, OUTPUT);
|
||||
@ -21,5 +19,4 @@ void setup() {
|
||||
EEPROM.end();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
}
|
||||
void loop() {}
|
||||
|
@ -32,9 +32,7 @@ void loop() {
|
||||
|
||||
// there are only 512 bytes of EEPROM, from 0 to 511, so if we're
|
||||
// on address 512, wrap around to address 0
|
||||
if (address == 512) {
|
||||
address = 0;
|
||||
}
|
||||
if (address == 512) { address = 0; }
|
||||
|
||||
delay(500);
|
||||
}
|
||||
|
Reference in New Issue
Block a user