Skip to content
Snippets Groups Projects
Commit 74d91787 authored by Eunchae Lee's avatar Eunchae Lee
Browse files

Update DHT11.c

parent deb3bfca
Branches
No related tags found
No related merge requests found
...@@ -214,7 +214,7 @@ void send_average(int sock) ...@@ -214,7 +214,7 @@ void send_average(int sock)
sample_count++; sample_count++;
// 측정 횟수가 10번이 넘어가면 메세지 출력 // 측정 횟수가 10번이 넘어가면 메세지 출력
if (sample_count >= 10) if (sample_count == 10)
{ {
// valid한 값이 측정되었을 때만 평균 계산 // valid한 값이 측정되었을 때만 평균 계산
if (read_times > 0) if (read_times > 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment