Skip to content

Commit ae25640

Browse files
authored
Merge pull request #12 from jbanaszczyk/try-int24
Try int24
2 parents 8c7ebb0 + e888422 commit ae25640

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

examples/Simple01/Simple01.vcxproj

+3
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@
8585
<FileType>CppCode</FileType>
8686
</None>
8787
</ItemGroup>
88+
<ItemGroup>
89+
<ClInclude Include="__vm\.Simple01.vsarduino.h" />
90+
</ItemGroup>
8891
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
8992
<ImportGroup Label="ExtensionTargets">
9093
</ImportGroup>

examples/Simple01/Simple01.vcxproj.filters

+5
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,9 @@
1717
<ItemGroup>
1818
<None Include="Simple01.ino" />
1919
</ItemGroup>
20+
<ItemGroup>
21+
<ClInclude Include="__vm\.Simple01.vsarduino.h">
22+
<Filter>Header Files</Filter>
23+
</ClInclude>
24+
</ItemGroup>
2025
</Project>

src/pms.h

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ class Pms5003 {
4242

4343
static const char *errorMsg[nValues_PmsStatus];
4444

45+
#if ! defined __INT24_MAX__
46+
using __uint24 = uint32_t;
47+
#endif
48+
4549
enum PmsCmd : __uint24 {
4650
cmdReadData = 0x0000e2L,
4751
cmdModePassive = 0x0000e1L,

0 commit comments

Comments
 (0)