Go Down

Topic: Serial print freezing (Read 647 times) previous topic - next topic

senofa

Here is the code all in one, including the new F() macros.

PaulS

Code: [Select]
  //Get oneWire Device Addresses
  if (!sensors.getAddress(HotHideTemp, 0)) Serial.println("Unable to find address for Device 0");
  if (!sensors.getAddress(ColdSideTemp, 1)) Serial.println("Unable to find address for Device 1");
  if (!sensors.getAddress(HotSideTemp, 2)) Serial.println("Unable to find address for Device 2");

Why don't these have F()?

Code: [Select]
  switch (chk)
  {
    case DHTLIB_OK: 
Serial.print("OK,\t");
break;
    case DHTLIB_ERROR_CHECKSUM:
Serial.print("Checksum error,\t");
break;
    case DHTLIB_ERROR_TIMEOUT:
Serial.print("Time out error,\t");
break;
    default:
Serial.print("Unknown error,\t");
break;
  }

Or these?

Code: [Select]
    daytime = 1;
    nighttime = 0;

It's either night or day, isn't it? Why do you need 2 ints to store one byte of data?

senofa

Thanks, I missed those when adding the F()s.

As for the night/day, a previous incarnation of this had the day temperature profiles starting a few hours before the day light gets turned on. I plan on reincorporating that later, since my snake goes to sleep early.

UKHeliBob

Quote
I plan on reincorporating that later, since my snake goes to sleep early.

We really ought to have a "quote of the day" topic
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

senofa

So after adding F() macros to every constant string, it still freezes on me. I have also updated my drivers and no change. Any more ideas?

AWOL

Quote
Any more ideas?
I'm getting bored typing this, but I'm going to do it:  Code?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

senofa


Go Up