mirror of
https://github.com/Lemonochrme/clover.git
synced 2025-06-08 16:50:50 +02:00
Updated gitignore. Removing warning for connecting() function in Screen.
This commit is contained in:
parent
b5c01dc017
commit
9e32194a70
4 changed files with 10 additions and 22 deletions
5
embedded/.gitignore
vendored
5
embedded/.gitignore
vendored
|
@ -1,6 +1,3 @@
|
|||
.pio
|
||||
.vscode/.browse.c_cpp.db*
|
||||
.vscode/c_cpp_properties.json
|
||||
.vscode/launch.json
|
||||
.vscode/ipch
|
||||
.vscode/
|
||||
.env
|
10
embedded/.vscode/extensions.json
vendored
10
embedded/.vscode/extensions.json
vendored
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
||||
// for the documentation about the extensions.json format
|
||||
"recommendations": [
|
||||
"platformio.platformio-ide"
|
||||
],
|
||||
"unwantedRecommendations": [
|
||||
"ms-vscode.cpptools-extension-pack"
|
||||
]
|
||||
}
|
6
embedded/.vscode/settings.json
vendored
6
embedded/.vscode/settings.json
vendored
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"files.associations": {
|
||||
"string": "cpp"
|
||||
},
|
||||
"cmake.configureOnOpen": false
|
||||
}
|
|
@ -44,8 +44,15 @@ void Screen::connecting(uint8_t state)
|
|||
|
||||
// Connecting dot dot dot (depending on state)
|
||||
strncpy(connectText, "Connecting", connectSize);
|
||||
for (uint8_t i = 0; i < state; i++)
|
||||
strncat(connectText, ".", connectSize);
|
||||
size_t currentLength = strlen(connectText);
|
||||
|
||||
for (uint8_t i = 0; i < state; i++) {
|
||||
// Checking space
|
||||
if (currentLength+1 < connectSize) {
|
||||
strncat(connectText, ".", currentLength+1);
|
||||
currentLength += 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Displaying connecting text and setup bar.
|
||||
_screen->clearBuffer();
|
||||
|
|
Loading…
Add table
Reference in a new issue