Skip to content

Commit 30a42de

Browse files
committed
Fix Bug
- Ex0004 Anonymous Function
1 parent d4c6aca commit 30a42de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#include <PagonGameDev_GameLoop.h>
22

33
int GameFPS = 25;
4-
GameInterval TimeInterval(1000 / GameFPS, * {Serial.println("Hello World : " + ((String)TimeInterval.DeltaTime) + " Sec.");});
4+
GameInterval TimeInterval(1000 / GameFPS, [&]() {
5+
Serial.println("Hello World : " + ((String)TimeInterval.DeltaTime) + " Sec.");
6+
} );
57

68
void setup() {
79
Serial.begin(9600);
@@ -10,5 +12,3 @@ void setup() {
1012
void loop() {
1113
TimeInterval.update();
1214
}
13-
14-

0 commit comments

Comments
 (0)