From 0c8b35b210ffaa27d883699e2e191f7768b100b6 Mon Sep 17 00:00:00 2001 From: Stefan Wildemann Date: Mon, 15 Feb 2021 09:21:08 +0100 Subject: Fix: Fix formatting of file to pass sanity check Please don't forget to use astyle --indent=spaces=4 --style=attach -n --max-code-length=120 -xf -xh to fix file style. --- navit/navit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/navit/navit.c b/navit/navit.c index 867298609..52ee513aa 100644 --- a/navit/navit.c +++ b/navit/navit.c @@ -3505,14 +3505,14 @@ void navit_layout_switch(struct navit *n) { && valid_attr.u.num==attr_position_valid_invalid) { return; //No valid fix yet } - - if (vehicle_get_attr(n->vehicle->vehicle, attr_position_coord_geo,&geo_attr,NULL)!=1) { + + if (vehicle_get_attr(n->vehicle->vehicle, attr_position_coord_geo,&geo_attr,NULL)!=1) { //No position - no sun return; } if (streetflags != NULL) { - + dbg(lvl_debug, "streetflags: %i", *streetflags); if (*streetflags & AF_UNDERGROUND) { @@ -3525,9 +3525,9 @@ void navit_layout_switch(struct navit *n) { // We are already in nightmode, no matter of the sun return; } - } + } } - + //We calculate sunrise anyway, cause it is needed both for day and for night if (__sunriset__(year,month,day,geo_attr.u.coord_geo->lng,geo_attr.u.coord_geo->lat,-5,1,&trise,&tset)!=0) { dbg(lvl_debug,"near the pole sun never rises/sets, so we should never switch profiles"); -- cgit v1.2.1