Skip to content
This repository has been archived by the owner on Aug 21, 2022. It is now read-only.

Commit

Permalink
Some adjustement for esp32
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgreg committed Jul 13, 2022
1 parent c82a565 commit 1dac24f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ sentence=Oregon THN128 433MHz temperature sensor library for Arduino
paragraph=This is an Oregon THN128 433MHz temperature sensor transmit/receive library for Arduino.
category=Sensors
url=https://github.com/Erriez/ErriezOregonTHN128
architectures=avr
7 changes: 4 additions & 3 deletions src/ErriezOregonTHN128Esp32.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
#define ERRIEZ_OREGON_THN128_H_

/* Check platform */
#if !defined(AVR)
#error "Platform not supported."
#endif
// disabled for esp32
// #if !defined(AVR)
// #error "Platform not supported."
// #endif

#ifdef __cplusplus
extern "C" {
Expand Down
4 changes: 2 additions & 2 deletions src/ErriezOregonTHN128Esp32Receive.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/

#include <Arduino.h>
#include <avr/interrupt.h>
// #include <avr/interrupt.h> // invalid on esp32

#include "ErriezOregonTHN128Esp32Receive.h"

Expand Down Expand Up @@ -214,7 +214,7 @@ static void handleSpace()
/*!
* \brief RF pin level change
*/
void rfPinChange(void)
void IRAM_ATTR rfPinChange(void)
{
uint32_t tNow;
uint16_t _tPulseLength;
Expand Down
2 changes: 1 addition & 1 deletion src/ErriezOregonTHN128Esp32Transmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/

#include <Arduino.h>
#include <util/delay.h>
// #include <util/delay.h> // invalid on esp32
#include "ErriezOregonTHN128Esp32Transmit.h"

/* Function prototypes */
Expand Down

0 comments on commit 1dac24f

Please sign in to comment.