This is annoying to fix. Because it’s an enum instead of enum class the name is globally scoped. Both are defined to 0 but because ParticleKeyErrorFlag is unsigned and HM330XErrorCode is signed even though both have a value of 0 it’s a compile error.
What I’d probably do is change the library to make its definitions enum class:
Thanks @rickkas7 for digging into this one, and confirming that changes are needed to the SEEED library. Maybe down the road the SEEED folks will make a modification to permit compatibility. Thanks again.