Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5

RX board TFT has no time date. firm 1.5
#1

The multiple use of Last_min in the firmware 1.5 keeps it from updating the time and date on the screen using a TFT LCD.
I have changed my code as follows so it updates. Please note this is only a snippet of the code I have modified. Werks have a look and confirm?
I found that Last_min was getting changed into minutos before the D_TFT sketch conditions could be met. Therefore no date and time was available. This is my finding anyways
Code:
// --- Every minute Tasks - Update LCD Clock, Read local sensors, Broadcast ATM
  if (MinuteNow % 1 == 0 && MinuteNow != last_minN)
  {
    #if DisplayType >= 1
      DisplayClock_LCD(YearNow, MonthNow, DayNow, HourNow, MinuteNow);
    #endif  
    read_InsideTH_Sensor();
    read_BMP();
    #if Relay_Data == 1
      send_LocalData();
    #endif
    last_minN = MinuteNow;  
  }
Reply


Messages In This Thread
RX board TFT has no time date. firm 1.5 - by strada916 - 17-11-2015, 17:34
RE: RX board TFT has no time date. firm 1.5 - by werk_ag - 17-11-2015, 19:57
RE: RX board TFT has no time date. firm 1.5 - by strada916 - 17-11-2015, 23:02
RE: RX board TFT has no time date. firm 1.5 - by werk_ag - 18-11-2015, 02:46
RE: RX board TFT has no time date. firm 1.5 - by strada916 - 18-11-2015, 14:18



Users browsing this thread: 1 Guest(s)