Skip to content

Commit

Permalink
add bitset function
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Aug 12, 2024
1 parent aed6ab6 commit 775794e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/tcs_intercom/tcs_intercom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ namespace esphome
volatile uint8_t TCSComponentStore::s_cmdLength = 0;
volatile bool TCSComponentStore::s_cmdReady = false;

void bitSet(uint8_t *variable, int bitPosition) {
*variable |= (1 << bitPosition);
}

void IRAM_ATTR HOT TCSComponentStore::gpio_intr(TCSComponentStore *arg)
{
// Made by https://github.com/atc1441/TCSintercomArduino
Expand Down

0 comments on commit 775794e

Please sign in to comment.