Closed matthijsberg closed 3 years ago
hi Matthijs
The issue is because you have ByteToFloat double declared in your project. The complete project folder is compiled and it finds 2 times a declaration with the same name (does not matter whether the declaration is the same..)
You havea file :
Plafond/.pio/libdeps/d1_mini/sps30/src/sps30.h",
And you have a different file:
Plafond/lib/scd30/src/paulvha_SCD30.h
Indeed what I have done is use code, previous developed for SPS30, into my SCD30 library. Don't like to rewrite the same code twice. I did not consider anyone would use both SPS30 and SCD30 at the same time. I have just made a small change and uploaded a new version of the SCD30 ( no change to SPS30) to prevent this error happening again.
regards, Paul
Van: Matthijs notifications@github.com Verzonden: donderdag 5 november 2020 22:19 Aan: paulvha/sps30 sps30@noreply.github.com CC: Subscribed subscribed@noreply.github.com Onderwerp: [paulvha/sps30] ByteToFloat (#16)
Hi Paul,
I tried compiling and example 7 this evening, but I run into those errors:
{ "resource": "/Users/matthijsvandenberg/Documents/PlatformIO/Projects/AirQual Plafond/.pio/libdeps/d1_mini/sps30/src/sps30.h", "owner": "cpp", "severity": 8, "message": "conflicting declaration 'typedef union ByteToFloat ByteToFloat'", "startLineNumber": 329, "startColumn": 3, "endLineNumber": 329, "endColumn": 3 }
and
{
"resource": "/Users/
I try this with PlatformIO in VSCode. Any idea's? Google comes up empty. Is this an old version of something? Bit of a noob as you know. :-(
Thnx.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpaulvha%2Fsps30%2Fissues%2F16&data=04%7C01%7C%7Cedc5fd1d303c4a7eac4b08d881d08312%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637402079828901057%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=U1hu1jDnOgfrdEKRNlOPcOMs0Kowk0lM0n1NAHZPSqs%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD2GBPCC6DE6I2IAVDGQD6LSOMJG3ANCNFSM4TL4E5JA&data=04%7C01%7C%7Cedc5fd1d303c4a7eac4b08d881d08312%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637402079828911052%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=9AQDOEHPs9iVMgd1jpgXqCrrFY4Lnx44crB0t11lJwc%3D&reserved=0.
update, compiled the example on Arduino IDE and works instantly. Must be something specific to VS Code or PIO of the person behind the keyboard.
Hi Paul,
I tried compiling and example 7 this evening, but I run into those errors:
and
I try this with PlatformIO in VSCode. Any idea's? Google comes up empty. Is this an old version of something? Bit of a noob as you know. :-(
Thnx.