# Mesh (Argon/Xenon) detecting USB power loss

**URL:** <https://community.particle.io/t/mesh-argon-xenon-detecting-usb-power-loss/46221>\
**Category:** BLE // NFC\
**Created:** [December 12, 2018, 8:39pm UTC](https://community.particle.io/t/mesh-argon-xenon-detecting-usb-power-loss/46221 "2018-12-12T20:39:07Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)\
**Post date:** [December 13, 2018, 6:27pm UTC](https://community.particle.io/t/mesh-argon-xenon-detecting-usb-power-loss/46221/7 "2018-12-13T18:27:36Z")

</div>

@rickkas7, I agree. I can’t seem to find any references to PWR anywhere in the code base. Perhaps setting the pinMode first will do the trick?

---

_[View the full topic](https://community.particle.io/t/mesh-argon-xenon-detecting-usb-power-loss/46221)._
