Skip to content

Commit

Permalink
Fix compiler warning by removing unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
modmaker committed Jun 12, 2013
1 parent b73f474 commit 36f5b02
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions heater.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ static void ns_sleep( struct timespec* ts, unsigned int ns)
void* heater_thread( void* arg)
{
struct timespec ts;
struct timespec old_ts;
unsigned int timer_period;
int log_scaler;
if (num_heater_channels < 1) {
Expand All @@ -138,7 +137,6 @@ void* heater_thread( void* arg)
clock_getres( TIMER_CLOCK, &ts);
printf( " timer resolution is %ld [ns]\n", ts.tv_nsec);
clock_gettime( TIMER_CLOCK, &ts);
old_ts = ts;
log_scaler = 0;
while (1) {
for (int ix = 0 ; ix < num_heater_channels ; ++ix) {
Expand Down

0 comments on commit 36f5b02

Please sign in to comment.