Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 1:32d6e3f7df30, committed 2021-03-03
- Comitter:
- MikamiUitOpen
- Date:
- Wed Mar 03 01:20:09 2021 +0000
- Parent:
- 0:7a653530c8ce
- Commit message:
- 2
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file | 
--- a/main.cpp	Sat Aug 29 11:26:29 2020 +0000
+++ b/main.cpp	Wed Mar 03 01:20:09 2021 +0000
@@ -6,7 +6,7 @@
 //          A2 :FM 変調波
 //          D13:FM 変調器1の変調信号(モニタ用)
 //
-//  2020/08/17, Copyright (c) 2020 MIKAMI, Naoki
+//  2021/03/03, Copyright (c) 2021 MIKAMI, Naoki
 //---------------------------------------------------------------------
 
 #include "SinOscIir.hpp"        // sin 発生器
@@ -48,7 +48,7 @@
 
     float xn = adc_.Read();         // 外部の変調信号を入力
     // 100 回に 1 回正弦波を発生することにより,1 Hz の正弦波を発生している
-    if (count++ > 100)
+    if (++count >= 100)
     {
         amp1 = 0.01f*(amplitude_.Generate() + 1.0f);
         count = 0;