Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rc-switch
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
c3pb
rc-switch
Commits
f820d2e4
Commit
f820d2e4
authored
8 years ago
by
Max Horn
Browse files
Options
Downloads
Patches
Plain Diff
add volatile to nReceivedValue and some other member vars.
See issue #119
parent
83a22365
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
RCSwitch.cpp
+4
-4
4 additions, 4 deletions
RCSwitch.cpp
RCSwitch.h
+4
-4
4 additions, 4 deletions
RCSwitch.h
with
8 additions
and
8 deletions
RCSwitch.cpp
+
4
−
4
View file @
f820d2e4
...
@@ -86,10 +86,10 @@ enum {
...
@@ -86,10 +86,10 @@ enum {
};
};
#if not defined( RCSwitchDisableReceiving )
#if not defined( RCSwitchDisableReceiving )
unsigned
long
RCSwitch
::
nReceivedValue
=
0
;
volatile
unsigned
long
RCSwitch
::
nReceivedValue
=
0
;
unsigned
int
RCSwitch
::
nReceivedBitlength
=
0
;
volatile
unsigned
int
RCSwitch
::
nReceivedBitlength
=
0
;
unsigned
int
RCSwitch
::
nReceivedDelay
=
0
;
volatile
unsigned
int
RCSwitch
::
nReceivedDelay
=
0
;
unsigned
int
RCSwitch
::
nReceivedProtocol
=
0
;
volatile
unsigned
int
RCSwitch
::
nReceivedProtocol
=
0
;
int
RCSwitch
::
nReceiveTolerance
=
60
;
int
RCSwitch
::
nReceiveTolerance
=
60
;
const
unsigned
int
RCSwitch
::
nSeparationLimit
=
4300
;
const
unsigned
int
RCSwitch
::
nSeparationLimit
=
4300
;
// separationLimit: minimum microseconds between received codes, closer codes are ignored.
// separationLimit: minimum microseconds between received codes, closer codes are ignored.
...
...
This diff is collapsed.
Click to expand it.
RCSwitch.h
+
4
−
4
View file @
f820d2e4
...
@@ -167,10 +167,10 @@ class RCSwitch {
...
@@ -167,10 +167,10 @@ class RCSwitch {
#if not defined( RCSwitchDisableReceiving )
#if not defined( RCSwitchDisableReceiving )
static
int
nReceiveTolerance
;
static
int
nReceiveTolerance
;
static
unsigned
long
nReceivedValue
;
volatile
static
unsigned
long
nReceivedValue
;
static
unsigned
int
nReceivedBitlength
;
volatile
static
unsigned
int
nReceivedBitlength
;
static
unsigned
int
nReceivedDelay
;
volatile
static
unsigned
int
nReceivedDelay
;
static
unsigned
int
nReceivedProtocol
;
volatile
static
unsigned
int
nReceivedProtocol
;
const
static
unsigned
int
nSeparationLimit
;
const
static
unsigned
int
nSeparationLimit
;
/*
/*
* timings[0] contains sync timing, followed by a number of bits
* timings[0] contains sync timing, followed by a number of bits
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment