# Boron - Power Source Type Detection

**URL:** <https://community.particle.io/t/boron-power-source-type-detection/53599>\
**Category:** Troubleshooting\
**Tags:** boron\
**Created:** [December 3, 2019, 6:48pm UTC](https://community.particle.io/t/boron-power-source-type-detection/53599 "2019-12-03T18:48:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Backpacker87](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/backpacker87/32/26145_2.png) [@Backpacker87](https://community.particle.io/u/Backpacker87)\
**Post date:** [December 3, 2019, 6:48pm UTC](https://community.particle.io/t/boron-power-source-type-detection/53599/1 "2019-12-03T18:48:20Z")

</div>

@rickkas7 I am working on implementing your library to detect the type of power source for the Boron (specifically if it is receiving power from USB).

Your library is awesome, and I am starting the basic example but I am receiving the following error:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/3/1/31fb2f736e6d6fae431df6d21fe0b32102b35006.png)

I have double checked the .cpp and .h and it is as shown on GitHub.

Any suggestions regarding the two errors would be appreciated, thank you!

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [December 3, 2019, 6:51pm UTC](https://community.particle.io/t/boron-power-source-type-detection/53599/2 "2019-12-03T18:51:06Z")

</div>

Did you both include the .cpp and .h files manually and include the DiagnosticsHelperRK library? You need to do one or the other, but not both.

---

<div class="post-metadata">

**Author:** ![Backpacker87](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/backpacker87/32/26145_2.png) [@Backpacker87](https://community.particle.io/u/Backpacker87)\
**Post date:** [December 3, 2019, 6:54pm UTC](https://community.particle.io/t/boron-power-source-type-detection/53599/3 "2019-12-03T18:54:22Z")

</div>

@rickkas7, ahhhh, such a rookie move on my part. I had both included, I removed one and it compiled perfectly.

Thank you very much for an insanely fast response!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/3/2/3291e3c9351789fe8620ae5bcec8d3fec67ff221.png) [@system](https://community.particle.io/u/system)\
**Post date:** [February 1, 2020, 6:56pm UTC](https://community.particle.io/t/boron-power-source-type-detection/53599/4 "2020-02-01T18:56:06Z")

</div>

Closed on February 1, 2020, 6:56pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
