--- Log opened Sat Mar 05 00:00:23 2016 01:53 -!- xenos1984 [~xenos1984@62.214.5.194] has joined #navit 02:10 -!- xenos19841 [~xenos1984@62.214.5.194] has joined #navit 02:10 -!- xenos1984 [~xenos1984@62.214.5.194] has quit [Disconnected by services] 02:21 -!- xenos19841 [~xenos1984@62.214.5.194] has quit [Quit: Leaving.] 02:28 -!- robertp [584aaffd@gateway/web/freenode/ip.88.74.175.253] has joined #navit 02:39 -!- jandegr [5bb616b9@gateway/web/freenode/ip.91.182.22.185] has joined #navit 03:11 -!- ZeroOne [~ZeroOne@91.114.11.118] has joined #navit 03:16 -!- ZeroOne [~ZeroOne@91.114.11.118] has quit [Ping timeout: 248 seconds] 03:53 #navit: < robertp> Hi, 03:55 #navit: < robertp> I ran into a problem: I fail in defining a command in navit.c. 03:55 #navit: < robertp> the ressources: 03:55 #navit: < robertp> https://github.com/pohlinkzei/navit/blob/0e8cff123b5d6d8d3dc10b18aa4eae3d1de342a7/navit/navit.c#L1391 03:55 #navit: < robertp> https://github.com/pohlinkzei/navit/blob/0e8cff123b5d6d8d3dc10b18aa4eae3d1de342a7/navit/navit.c#L3463 03:56 #navit: < robertp> If I call this via OSD button, nothing happens and it appears that the function isn't called on key press. (its defined in navit.xml) 04:23 #navit: < jandegr> hi robertp 04:24 #navit: < jandegr> when I insert dbg(0,"toggle_layout_called\n"); as the first line in navit_cmd_switch_layout(struct navit *this_) 04:25 #navit: < jandegr> I do get an output when I push the button 04:25 #navit: < jandegr> so it is called at keypress 04:32 #navit: < jandegr> but needs a bit more work to prevent nullpointer exceptions 04:33 #navit: < jandegr> after you found you have the one or the other with (this_->layout_current->dayname || this_->layout_current->nightname) 04:33 #navit: < jandegr> the lower you expect to have them both 04:33 #navit: < jandegr> then* lower you expect to have them both 04:36 #navit: < jandegr> so I can make it crash easily :) 04:36 #navit: < jandegr> and it gets called for sure :) 05:11 -!- xenos1984 [~xenos1984@88.128.80.55] has joined #navit 05:18 #navit: < jandegr> robertp it works for me with the lines below 05:18 #navit: < jandegr> if (this_->layout_current->dayname && strcmp(this_->layout_current->name,this_->layout_current->dayname){ 05:19 #navit: < jandegr> navit_set_layout_by_name(this_,this_->layout_current->dayname); 05:19 #navit: < jandegr> dbg(lvl_debug,"switched layout to = %s\n",this_->layout_current->name); 05:19 #navit: < jandegr> } 05:19 #navit: < jandegr> else if (this_->layout_current->nightname && strcmp(this_->layout_current->name,this_->layout_current->nightname)) { 05:20 #navit: < jandegr> navit_set_layout_by_name(this_,this_->layout_current->nightname); 05:20 #navit: < jandegr> dbg(lvl_debug,"switched layout to = %s\n",this_->layout_current->name); 05:20 #navit: < jandegr> } 05:21 #navit: < jandegr> and no more crashes (at least up to now) :) 05:25 #navit: < robertp> thanks. the crashes were caused by a stupid fault in the audio player code 05:25 #navit: < robertp> so the switch layout code shouldnt crash 05:29 #navit: < jandegr> I don't have audio code on my box and it did crash for the reasons as described above, before I changed it 05:39 -!- alex0xbf [~alex@178.70.92.132] has quit [Ping timeout: 250 seconds] 05:41 -!- alex0xbf [~alex@178.70.92.132] has joined #navit 05:47 #navit: < robertp> jandegr: that doesnt work for me. :( how does your osd look like? 06:26 -!- xenos1984 [~xenos1984@88.128.80.55] has quit [Quit: Leaving.] 06:29 #navit: < jandegr> robertp I'll be back in 20 minutes or so 06:38 #navit: < jandegr> 06:45 #navit: < robertp> thank.s my osd item was wrong... 06:51 #navit: < jandegr> robertp for a more general purpose I think it could be made parameterized 06:52 #navit: < jandegr> call with 0 = just disable autoswitcher 06:52 #navit: < jandegr> call with 1 = disable autoswitcher and toggle 06:52 #navit: < jandegr> call with 2 = enable autoswitcher 06:52 #navit: < jandegr> or smt like that 06:53 #navit: < robertp> sure. I just want it to work now. adjusting and parameterizing will follow. 06:53 #navit: < jandegr> ok, thx :) 06:54 #navit: < robertp> did you change the switch_layout.c too? 07:07 -!- pini [~pini@bou-fi.pustule.org] has joined #navit 07:22 #navit: < jandegr> not yet, but will start to do so now 07:23 #navit: < robertp> dont bother. was just a question. 07:43 -!- robertp [584aaffd@gateway/web/freenode/ip.88.74.175.253] has quit [Ping timeout: 252 seconds] 08:22 -!- juse [~juse@fow4.kyla.fi] has quit [Quit: Nettalk6 - www.ntalk.de] 08:53 -!- pini [~pini@bou-fi.pustule.org] has quit [Ping timeout: 248 seconds] 09:14 -!- pini [~pini@bou-fi.pustule.org] has joined #navit 09:20 -!- robertp [584aaffd@gateway/web/freenode/ip.88.74.175.253] has joined #navit 09:25 -!- robertp [584aaffd@gateway/web/freenode/ip.88.74.175.253] has quit [Ping timeout: 252 seconds] 09:56 -!- xenos1984 [~xenos1984@b133.tll.aero] has joined #navit 10:04 -!- xenos1984 [~xenos1984@b133.tll.aero] has quit [Quit: Leaving.] 10:18 -!- ZeroOne [~ZeroOne@91.114.11.118] has joined #navit 10:49 -!- ZeroOne [~ZeroOne@91.114.11.118] has quit [Ping timeout: 248 seconds] 13:16 -!- pini [~pini@bou-fi.pustule.org] has quit [Ping timeout: 252 seconds] 13:50 -!- xenos1984 [~xenos1984@118-166-191-90.dyn.estpak.ee] has joined #navit 14:21 -!- alex0xbf [~alex@178.70.92.132] has quit [Ping timeout: 252 seconds] 14:46 -!- robertp [584aaffd@gateway/web/freenode/ip.88.74.175.253] has joined #navit 15:05 -!- jandegr [5bb616b9@gateway/web/freenode/ip.91.182.22.185] has quit [Quit: Page closed] 15:27 -!- alex0xbf [~alex@178.70.92.132] has joined #navit 16:43 -!- xenos1984 [~xenos1984@118-166-191-90.dyn.estpak.ee] has quit [Quit: Leaving.] 16:51 -!- alex0xbf [~alex@178.70.92.132] has quit [Ping timeout: 264 seconds] 16:51 -!- alex0xbf [~alex@178.70.70.210] has joined #navit 17:52 -!- robertp [584aaffd@gateway/web/freenode/ip.88.74.175.253] has quit [] 19:57 -!- Navit` is now known as Navit 19:57 #navit: < Navit> The following compiles failed: http://download.navit-project.org/logs/navit/android_armv5te/svn/navit-svn-6608.failed http://download.navit-project.org/logs/navit/src/svn/navit-svn-6608.failed http://download.navit-project.org/logs/navit/openmoko/svn/navit-svn-6608.failed http://download.navit-project.org/logs/navit/win32/svn/navit-svn-6608.failed http://download.navit-project.org/logs/navit/n800/svn/navit-svn-6608.failed http://download.navit-project 19:57 #navit: < Navit> it-svn-6608.failed http://download.navit-project.org/logs/navit/android_x86/svn/navit-svn-6608.failed http://download.navit-project.org/logs/navit/tomtom/svn/navit-svn-6608.failed 19:57 #navit: < Navit> See compile results history at http://download.navit-project.org/logs/navit/stats.html --- Log closed Sun Mar 06 00:00:24 2016