-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #207 from es-ude/EOFLine
refactor(clang): add EOF empty line
- Loading branch information
Showing
23 changed files
with
45 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
:toc: top | ||
:icons: font | ||
:source-highlighter: rouge | ||
:imagesdir: {src-dir}/documentation/pics | ||
:imagesdir: {src-dir}/documentation/pics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,10 +34,11 @@ jobs: | |
with: | ||
ref: ${{ github.head_ref }} | ||
token: ${{ secrets.PUSH_TOKEN }} | ||
- name: Install clang-format | ||
run: | | ||
sudo apt update | ||
sudo apt install -y clang-format | ||
- name: Install LLVM and Clang | ||
uses: KyleMayes/install-llvm-action@v1 | ||
with: | ||
version: "17" | ||
directory: ${{ runner.temp }}/llvm | ||
- name: Get C Files | ||
run: | | ||
echo SRC=$(git ls-tree --full-tree -r HEAD | grep -e "\.\(c\|h\)\$" | cut -f 2 | grep -v ^extern) >> $GITHUB_ENV | ||
|
@@ -47,7 +48,7 @@ jobs: | |
- name: Commit Changes | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: "refactor(beautify): ${{ github.head_ref }}" | ||
commit_message: "style(all): apply clang-format to '${{ github.head_ref }}'" | ||
commit_user_name: github-actions | ||
commit_user_email: [email protected] | ||
commit_author: github-actions <[email protected]> | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ module.exports = { | |
] | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ nodeenv==1.8.0 | |
platformdirs==4.0.0 | ||
pre-commit==3.5.0 | ||
PyYAML==6.0.1 | ||
virtualenv==20.24.7 | ||
virtualenv==20.24.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,15 @@ | ||
IF(NOT WIFI_SSID) | ||
SET(WIFI_SSID SSID) | ||
ENDIF() | ||
IF(NOT WIFI_PWD) | ||
SET(WIFI_PWD PASSWORD) | ||
ENDIF() | ||
IF(NOT MQTT_HOST) | ||
SET(MQTT_HOST 0.0.0.0) | ||
ENDIF() | ||
IF(NOT MQTT_PORT) | ||
SET(MQTT_PORT 1883) | ||
ENDIF() | ||
|
||
|
||
if (NOT EXISTS ${CMAKE_SOURCE_DIR}/NetworkConfig.c) | ||
file(WRITE ${CMAKE_SOURCE_DIR}/NetworkConfig.c " | ||
#include \"Network.h\" | ||
if (NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/NetworkConfig.c) | ||
file(WRITE NetworkConfig.c "#include \"Network.h\" | ||
#include \"MqttBroker.h\" | ||
networkCredentials_t networkCredentials = { | ||
.ssid = \"${WIFI_SSID}\", | ||
.password = \"${WIFI_PWD}\" | ||
}; | ||
mqttBrokerHost_t mqttHost = { | ||
.ip = \"${MQTT_HOST}\", | ||
.port = \"${MQTT_PORT}\", | ||
.userID = \"${MQTT_USER}\", | ||
.password = \"${MQTT_PWD}\" | ||
}; | ||
networkCredentials_t networkCredentials = {.ssid = \"SSID\", .password = \"password\"}; | ||
mqttBrokerHost_t mqttHost = {.ip = \"0.0.0.0\", .port = \"1883\", .userID = \"\", .password = \"\"}; | ||
") | ||
endif () | ||
|
||
add_library(network_config INTERFACE) | ||
target_sources(network_config INTERFACE | ||
${CMAKE_SOURCE_DIR}/NetworkConfig.c) | ||
${CMAKE_CURRENT_LIST_DIR}/NetworkConfig.c) | ||
target_link_libraries(network_config INTERFACE | ||
espBroker_lib | ||
network_lib) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,4 +128,4 @@ bool espInternalSoftReset(void) { | |
return espErrorCode; | ||
} | ||
|
||
/* endregion */ | ||
/* endregion */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,4 +72,4 @@ prodding periodically from the tick interrupt. */ | |
#endif | ||
} | ||
#endif | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,4 +126,4 @@ int main() { | |
PRINT("Waiting ..."); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,4 +74,4 @@ int main() { | |
RUN_TEST(test_downloadViaHttpOrderCorrect); | ||
|
||
return UNITY_END(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include <stdbool.h> | ||
|
||
void stdio_usb_init(); | ||
bool stdio_usb_connected(); | ||
bool stdio_usb_connected(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ bool stdio_usb_connected() { | |
} | ||
char getchar_timeout_us(uint32_t timeout) { | ||
return '\0'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters