Merge pull request #151 from nobodywasishere/copying-condition

Add source code license and link to github to system app
This commit is contained in:
JF002 2021-01-02 20:14:13 +00:00 committed by GitHub
commit 1ca0c52983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -112,6 +112,13 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen2() {
} }
std::unique_ptr<Screen> SystemInfo::CreateScreen3() { std::unique_ptr<Screen> SystemInfo::CreateScreen3() {
strncpy(t3, "Hello from\nthe developer!", 27); sprintf(t3, "Hello from\nthe developer!\n"
"Software Licensed\n"
"under the terms of\n"
"the GNU General\n"
"Public License v3\n"
"Source code:\n"
"https://github.com/\n"
" JF002/Pinetime");
return std::unique_ptr<Screen>(new Screens::Label(app, t3)); return std::unique_ptr<Screen>(new Screens::Label(app, t3));
} }

View File

@ -43,7 +43,7 @@ namespace Pinetime {
char t1[200]; char t1[200];
char t2[200]; char t2[200];
char t3[30]; char t3[200];
ScreenList<3> screens; ScreenList<3> screens;
std::unique_ptr<Screen> CreateScreen1(); std::unique_ptr<Screen> CreateScreen1();