Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lufa
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
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
Erik Strand
lufa
Commits
ef4cff29
Commit
ef4cff29
authored
13 years ago
by
Dean Camera
Browse files
Options
Downloads
Patches
Plain Diff
Fix TempDataLogger project logging interval always being 500ms more than the requested interval.
parent
c505ba04
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
Projects/TempDataLogger/TempDataLogger.c
+1
-1
1 addition, 1 deletion
Projects/TempDataLogger/TempDataLogger.c
Projects/TempDataLogger/TempDataLogger.h
+1
-4
1 addition, 4 deletions
Projects/TempDataLogger/TempDataLogger.h
with
2 additions
and
5 deletions
Projects/TempDataLogger/TempDataLogger.c
+
1
−
1
View file @
ef4cff29
...
...
@@ -102,7 +102,7 @@ ISR(TIMER1_COMPA_vect, ISR_BLOCK)
uint8_t
LEDMask
=
LEDs_GetLEDs
();
/* Check to see if the logging interval has expired */
if
(
CurrentLoggingTicks
++
<
LoggingInterval500MS_SRAM
)
if
(
++
CurrentLoggingTicks
<
LoggingInterval500MS_SRAM
)
return
;
/* Reset log tick counter to prepare for next logging interval */
...
...
This diff is collapsed.
Click to expand it.
Projects/TempDataLogger/TempDataLogger.h
+
1
−
4
View file @
ef4cff29
...
...
@@ -72,11 +72,8 @@
/** LED mask for the library LED driver, to indicate that the USB interface is busy. */
#define LEDMASK_USB_BUSY LEDS_LED2
/** Filename for the log data when written to the dataflash FAT filesystem. */
#define LOG_FILENAME "TEMPLOG.txt"
/** Default log interval when the EEPROM is blank, in 500ms ticks. */
#define DEFAULT_LOG_INTERVAL
2
0
#define DEFAULT_LOG_INTERVAL
1
0
/** Indicates if the disk is write protected or not. */
#define DISK_READ_ONLY false
...
...
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