Skip to content

Commit

Permalink
Merge pull request #9 from Blue-Crescent/receive
Browse files Browse the repository at this point in the history
受信部分の最適化2
  • Loading branch information
Blue-Crescent authored Feb 19, 2024
2 parents 3896603 + c7bd3ab commit e625302
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=JJYReceiver
version=0.8.0
version=0.8.1
author=BlueCrescent
maintainer=BlueCrescent <[email protected]>
sentence=JJY standard radio signal wave receiver library.
Expand Down
7 changes: 5 additions & 2 deletions src/JJYReceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
/*!
@brief Constructor for JJYReceiver
*/
#ifdef DEBUG_BUILD
#ifndef DEBUG_ESP32
//#ifdef DEBUG_BUILD
//#ifndef DEBUG_ESP32
//extern SoftwareSerial Serial;
#endif
#endif
Expand Down Expand Up @@ -351,6 +351,9 @@ void JJYReceiver::debug(){
case TIMEVALID:
DEBUG_PRINT("TIMEVALID");
break;
case TIMETICK:
DEBUG_PRINT("TIMETICK");
break;
default:
break;
}
Expand Down
8 changes: 4 additions & 4 deletions src/JJYReceiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include <Arduino.h>
#include <stdint.h>

//#define DEBUG_BUILD
//#define DEBUG_ESP32
#define DEBUG_BUILD
#define DEBUG_ESP32

#ifdef DEBUG_BUILD
# define DEBUG_PRINT(...) Serial.print(__VA_ARGS__);
Expand Down Expand Up @@ -103,8 +103,8 @@ class JJYReceiver {
volatile uint8_t sampleindex = 0;
volatile uint8_t sampling [N];
volatile int8_t timeavailable = -1;
volatile const uint8_t CONST_PM [N] = {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF0,0x00};
volatile const uint8_t CONST_H [N] = {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00};
volatile const uint8_t CONST_PM [N] = {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF0,0x00,0x00};
volatile const uint8_t CONST_H [N] = {0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
volatile const uint8_t CONST_L [N] = {0xFF,0xFF,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};

volatile time_t globaltime = 0;
Expand Down

0 comments on commit e625302

Please sign in to comment.