Skip to content

Commit 0eb5c70

Browse files
committed
fixed: formatting
1 parent b83abbe commit 0eb5c70

File tree

29 files changed

+190
-190
lines changed

29 files changed

+190
-190
lines changed

cores/rp2040/FS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ File open(const char* path, const char* mode) {
563563
return File();
564564
}
565565

566-
for (MountEntry* entry = s_mounted; entry; entry = entry->next) {
566+
for (MountEntry * entry = s_mounted; entry; entry = entry->next) {
567567
size_t offset = entry->path.length();
568568
if (strstr(path, entry->path.c_str())) {
569569
File result = entry->fs->open(path + offset);

cores/rp2040/sdkoverride/att_db.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ uint16_t btp_att_get_attributes_by_uuid128(uint16_t start_handle, uint16_t end_h
18201820
if (it.handle > end_handle) {
18211821
break;
18221822
}
1823-
if (att_iterator_match_uuid(&it, (uint8_t*) uuid128, 16)) {
1823+
if (att_iterator_match_uuid(&it, (uint8_t *) uuid128, 16)) {
18241824
little_endian_store_16(response_buffer, pos, it.handle);
18251825
pos += 2;
18261826
response_buffer[pos++] = btp_permissions_for_flags(it.flags);

cores/rp2040/stdlib_noniso.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ extern "C" const char* strrstr(const char*__restrict p_pcString,
170170
(stPatternLength) &&
171171
(stPatternLength <= stStringLength)) {
172172
// Pattern is shorter or has the same length than the string
173-
for (const char* s = (p_pcString + stStringLength - stPatternLength); s >= p_pcString; --s) {
173+
for (const char * s = (p_pcString + stStringLength - stPatternLength); s >= p_pcString; --s) {
174174
if (0 == strncmp(s, p_pcPattern, stPatternLength)) {
175175
pcResult = s;
176176
break;

libraries/ADCInput/src/ADCInput.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ bool ADCInput::begin() {
109109
setFrequency(_freq);
110110

111111
_arb = new AudioBufferManager(_buffers, _bufferWords, 0, INPUT, DMA_SIZE_16);
112-
if (!_arb->begin(DREQ_ADC, (volatile void*)&adc_hw->fifo)) {
112+
if (!_arb->begin(DREQ_ADC, (volatile void *)&adc_hw->fifo)) {
113113
delete _arb;
114114
_arb = nullptr;
115115
return false;

libraries/BTstackLib/src/BTstackLib.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ const uint8_t * UUID::getUuid(void) const {
373373
static char uuid16_buffer[5];
374374
const char * UUID::getUuidString() const {
375375
// TODO: fix uuid_has_bluetooth_prefix call to use const
376-
if (uuid_has_bluetooth_prefix((uint8_t*)uuid)) {
376+
if (uuid_has_bluetooth_prefix((uint8_t *)uuid)) {
377377
sprintf(uuid16_buffer, "%04x", (uint16_t) big_endian_read_32(uuid, 0));
378378
return uuid16_buffer;
379379
} else {
@@ -470,7 +470,7 @@ bool BLEAdvertisement::nameHasPrefix(const char * name_prefix) {
470470
if (compare_len > data_len) {
471471
compare_len = data_len;
472472
}
473-
if (strncmp(name_prefix, (const char*) data, compare_len) == 0) {
473+
if (strncmp(name_prefix, (const char *) data, compare_len) == 0) {
474474
return true;
475475
}
476476
break;

libraries/BluetoothAudio/src/A2DPSink.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ bool A2DPSink::begin() {
110110
a2dp_sink_register_media_handler(L2CAPPACKETHANDLERCB(A2DPSink, handle_l2cap_media_data_packet));
111111
a2dp_sink_stream_endpoint_t * stream_endpoint = &a2dp_sink_stream_endpoint;
112112
avdtp_stream_endpoint_t * local_stream_endpoint = a2dp_sink_create_stream_endpoint(AVDTP_AUDIO,
113-
AVDTP_CODEC_SBC, media_sbc_codec_capabilities, sizeof(media_sbc_codec_capabilities),
114-
stream_endpoint->media_sbc_codec_configuration, sizeof(stream_endpoint->media_sbc_codec_configuration));
113+
AVDTP_CODEC_SBC, media_sbc_codec_capabilities, sizeof(media_sbc_codec_capabilities),
114+
stream_endpoint->media_sbc_codec_configuration, sizeof(stream_endpoint->media_sbc_codec_configuration));
115115
if (!local_stream_endpoint) {
116116
DEBUGV("A2DP Source: not enough memory to create local stream endpoint\n");
117117
return false;

libraries/DNSServer/examples/CaptivePortalAdvanced/handleHttp.ino

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,16 @@ void handleWifi() {
5757
+ String(softAP_ssid) + F("</td></tr>"
5858
"<tr><td>IP ")
5959
+ toStringIp(WiFi.softAPIP()) + F("</td></tr>"
60-
"</table>"
61-
"\r\n<br />"
62-
"<table><tr><th align='left'>WLAN config</th></tr>"
63-
"<tr><td>SSID ")
60+
"</table>"
61+
"\r\n<br />"
62+
"<table><tr><th align='left'>WLAN config</th></tr>"
63+
"<tr><td>SSID ")
6464
+ String(ssid) + F("</td></tr>"
6565
"<tr><td>IP ")
6666
+ toStringIp(WiFi.localIP()) + F("</td></tr>"
67-
"</table>"
68-
"\r\n<br />"
69-
"<table><tr><th align='left'>WLAN list (refresh if any missing)</th></tr>");
67+
"</table>"
68+
"\r\n<br />"
69+
"<table><tr><th align='left'>WLAN list (refresh if any missing)</th></tr>");
7070
Serial.println("scan start");
7171
int n = WiFi.scanNetworks();
7272
Serial.println("scan done");

libraries/DNSServer/src/DNSServer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ void DNSServer::disableForwarder(const String &domainName, bool freeResources) {
9393
DEBUG_PRINTF("from stop, deleted _que\r\n");
9494
DEBUG_(({
9595
if (_que_ov) {
96-
DEBUG_PRINTLN2("DNS forwarder que overflow or no reply to request: ", (_que_ov));
96+
DEBUG_PRINTLN2("DNS forwarder que overflow or no reply to request: ", (_que_ov));
9797
}
9898
if (_que_drop) {
99-
DEBUG_PRINTLN2("DNS forwarder que wrapped, reply dropped: ", (_que_drop));
99+
DEBUG_PRINTLN2("DNS forwarder que wrapped, reply dropped: ", (_que_drop));
100100
}
101101
}));
102102
}

libraries/EEPROM/src/EEPROM.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class EEPROMClass {
5353
if (address < 0 || address + sizeof(T) > _size) {
5454
return t;
5555
}
56-
if (memcmp(_data + address, (const uint8_t*)&t, sizeof(T)) != 0) {
56+
if (memcmp(_data + address, (const uint8_t *)&t, sizeof(T)) != 0) {
5757
_dirty = true;
5858
memcpy(_data + address, (const uint8_t*)&t, sizeof(T));
5959
}

libraries/FatFS/src/FatFS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ class FatFSDirImpl : public DirImpl {
438438
} else {
439439
_valid = false;
440440
}
441-
} while (_valid && strncmp((const char*) _lfn, _pattern.c_str(), n) != 0);
441+
} while (_valid && strncmp((const char *) _lfn, _pattern.c_str(), n) != 0);
442442
return _valid;
443443
}
444444

0 commit comments

Comments
 (0)