Programming correction

Dear all,

Here i am attaching Simple Menu code here.I am setting latitude , longitude, date and time.

Problem statement:
I can modify the value But i wanna know whether its being updated or not.
If i use Serial.print statementin void loop() it not printing any data , But i print it in function it printing after updating. Why it is doing it.
Since same parameter being used other part of program i wanna know it updated or not.

connection diagram

Code2.rar (4.93 KB)

	if(hour() <10)
	lcd.setCursor(5,1);
	lcd.setCursor(4,1);

If it's before 10:00 AM, set the cursor to column 5. Then, regardless of what time it is, and without having printed anything, move the cursor to column 4. Why?

If i use Serial.print statementin void loop() it not printing any data

What are you trying to print in loop()?

But i print it in function it printing after updating.

If you print what in what function?

Why it is doing it.

Since I have no idea what is doing what, how can I be expected to know why it is doing it?

Since same parameter being used other part of program i wanna know it updated or not.

Be nice to know what parameter you are referring to.

You would think that by now, you would know how to ask questions on this forum without all the useless handwaving.

I have attached 2 code here

  1. code 2: Here i am adjusting latitude /longitude and date and time . Which can be seen being updated in Serial monitor.
    Unless you adjust permeter the it doesn't goes to time display window.

  2. code 3 : My main code. Problem here is as soon as try to make changes it directly go to display the date and time.
    not allows user to set latitude and longitude.sometime it allows to make changes . but as soon i am trying to press Ok .i.e right button it goes directly to display window i.e date and time.
    Here it will not wait to adjust the values quickly goes time display window.
    parameter are same as code2

code 2 all perameter are adjusted in the lcd.h and lcd_c file of code3.

code3.rar (15.7 KB)

Code2.rar (4.72 KB)