diff options
author | Stefan Wildemann <stefan.wildemann@corpuls.com> | 2021-02-15 09:21:08 +0100 |
---|---|---|
committer | Stefan Wildemann <stefan.wildemann@corpuls.com> | 2021-02-15 09:21:08 +0100 |
commit | 0c8b35b210ffaa27d883699e2e191f7768b100b6 (patch) | |
tree | adcb5a8e133159d35a80426dd4eea95bb1419886 | |
parent | 8ffd477931e48cb86b1c9376b5c0f04f81596f68 (diff) | |
download | navit-0c8b35b210ffaa27d883699e2e191f7768b100b6.tar.gz |
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 <file>
to fix file style.
-rw-r--r-- | navit/navit.c | 10 |
1 files 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"); |