Skip to content

Commit cc683bb

Browse files
committed
remove delay from desktop builds
1 parent 41dc411 commit cc683bb

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/CommonHelix.h

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
#pragma once
22

33
#ifdef ARDUINO
4-
#include "Arduino.h"
4+
# include "Arduino.h"
55
#else
6-
// remove yield statment if used outside of arduino
7-
#define yield()
8-
//#define delay(ms)
9-
#include <stdint.h>
6+
// remove delay statment if used outside of arduino
7+
# include <stdint.h>
8+
# define delay(ms)
109
#endif
1110

1211
// Not all processors support assert
1312
#ifndef assert
14-
#ifdef NDEBUG
13+
# ifdef NDEBUG
1514
# define assert(condition) ((void)0)
16-
#else
15+
# else
1716
# define assert(condition) /*implementation defined*/
18-
#endif
17+
# endif
1918
#endif
2019

2120
#include "helix_log.h"

0 commit comments

Comments
 (0)