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

Commit

Permalink
improve temp adjustment response
Browse files Browse the repository at this point in the history
  • Loading branch information
zerog2k committed Apr 21, 2016
1 parent 938da3c commit ecdd2f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
@@ -206,8 +206,8 @@ int main()

RELAY = 1;

// run every ~2 secs
if (count % 16 == 0) {
// run every ~1 secs
if (count % 8 == 0) {
lightval = getADCResult8(ADC_LIGHT);
temp = gettemp(getADCResult(ADC_TEMP)) + config.temp_offset;

0 comments on commit ecdd2f1

Please sign in to comment.