Skip to content

Commit

Permalink
Merge pull request #12 from jbanaszczyk/try-int24
Browse files Browse the repository at this point in the history
Try int24
  • Loading branch information
jbanaszczyk authored Apr 12, 2018
2 parents 8c7ebb0 + e888422 commit ae25640
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/Simple01/Simple01.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
<FileType>CppCode</FileType>
</None>
</ItemGroup>
<ItemGroup>
<ClInclude Include="__vm\.Simple01.vsarduino.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
5 changes: 5 additions & 0 deletions examples/Simple01/Simple01.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@
<ItemGroup>
<None Include="Simple01.ino" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="__vm\.Simple01.vsarduino.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions src/pms.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ class Pms5003 {

static const char *errorMsg[nValues_PmsStatus];

#if ! defined __INT24_MAX__
using __uint24 = uint32_t;
#endif

enum PmsCmd : __uint24 {
cmdReadData = 0x0000e2L,
cmdModePassive = 0x0000e1L,
Expand Down

0 comments on commit ae25640

Please sign in to comment.