Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이다은
/
raspberry
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
daeun
2021-04-23 15:08:54 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4d500231f37df0236eae402fc4a51627090bcf8d
4d500231
1 parent
956a4fa5
a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
midterm4.c
midterm4.c
View file @
4d50023
...
...
@@ -96,6 +96,7 @@ int main(){
if
(
state
==
0
)
{
unsigned
long
prevtime
=
millis
();
while
(
1
)
{
if
(
state
>
0
)
break
;
unsigned
long
curtime
=
millis
();
if
(
curtime
-
prevtime
>=
9
)
{
prevtime
=
curtime
;
...
...
@@ -112,6 +113,7 @@ int main(){
}
else
{
while
(
1
)
{
if
(
state
==
0
)
break
;
timer
();
}
}
...
...
Please
register
or
login
to post a comment