{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-thread-jn517x-example/issues/1","labels_url":"https://api.github.com/repos/ARMmbed/mbed-thread-jn517x-example/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-thread-jn517x-example/issues/1/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-thread-jn517x-example/issues/1/events","html_url":"https://github.com/ARMmbed/mbed-thread-jn517x-example/issues/1","id":129535245,"number":1,"title":"Thread minimal does not work with Minar 1.0.1","user":{"login":"mlnx","id":1931553,"avatar_url":"https://avatars.githubusercontent.com/u/1931553?v=3","gravatar_id":"","url":"https://api.github.com/users/mlnx","html_url":"https://github.com/mlnx","followers_url":"https://api.github.com/users/mlnx/followers","following_url":"https://api.github.com/users/mlnx/following{/other_user}","gists_url":"https://api.github.com/users/mlnx/gists{/gist_id}","starred_url":"https://api.github.com/users/mlnx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlnx/subscriptions","organizations_url":"https://api.github.com/users/mlnx/orgs","repos_url":"https://api.github.com/users/mlnx/repos","events_url":"https://api.github.com/users/mlnx/events{/privacy}","received_events_url":"https://api.github.com/users/mlnx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-01-28T18:26:06Z","updated_at":"2016-02-01T19:37:36Z","closed_at":null,"body":"This problem was raised some time ago and we are now able to reproduce.\r\nIt seems there is something wrong with the latest version of Minar (1.0.1), as there is no radio activity. Everything works as expected when using Minar 1.0.0.\r\nThis is the diff between versions:\r\n\r\n``` \r\ndiff --git a/source/minar.cpp b/source/minar.cpp\r\nindex c05a54a..4c9c1b2 100644\r\n--- a/source/minar.cpp\r\n+++ b/source/minar.cpp\r\n@@ -387,10 +387,11 @@ int minar::SchedulerData::start(){\r\n                 //\r\n                 // We have to perform this update with interrupts disabled\r\n                 // because we use last_dispatch for sorting dispatch_tree\r\n-                if(dispatch_tree.get_num_elements() > 0)\r\n-                    last_dispatch = smallestTimeIncrement(last_dispatch, now, (dispatch_tree.get_root())->call_before);\r\n-                else\r\n-                    last_dispatch = smallestTimeIncrement(last_dispatch, now, next->call_before);\r\n+                //\r\n+                // next is guaranteed to be the next item in must-execute-by\r\n+                // order, since the callback list is sorted in must-execute-by\r\n+                // order.\r\n+                last_dispatch = smallestTimeIncrement(last_dispatch, now, next->call_before);\r\n \r\n                 const minar::tick_t lag = wrapTime(now - last_dispatch);\r\n                 if(lag > Warn_Lag_Ticks)\r\n```\r\n\r\nARM Internal Ref: IOTSFW-1828"},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-thread-jn517x-example/issues/comments/178146631","html_url":"https://github.com/ARMmbed/mbed-thread-jn517x-example/issues/1#issuecomment-178146631","issue_url":"https://api.github.com/repos/ARMmbed/mbed-thread-jn517x-example/issues/1","id":178146631,"user":{"login":"mlnx","id":1931553,"avatar_url":"https://avatars.githubusercontent.com/u/1931553?v=3","gravatar_id":"","url":"https://api.github.com/users/mlnx","html_url":"https://github.com/mlnx","followers_url":"https://api.github.com/users/mlnx/followers","following_url":"https://api.github.com/users/mlnx/following{/other_user}","gists_url":"https://api.github.com/users/mlnx/gists{/gist_id}","starred_url":"https://api.github.com/users/mlnx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlnx/subscriptions","organizations_url":"https://api.github.com/users/mlnx/orgs","repos_url":"https://api.github.com/users/mlnx/repos","events_url":"https://api.github.com/users/mlnx/events{/privacy}","received_events_url":"https://api.github.com/users/mlnx/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T19:37:36Z","updated_at":"2016-02-01T19:37:36Z","body":"@bangaragirinxp we need your help to investigate this further.\r\nCould you please share Wireshark radio sniffer captures comparing the two implementations (minar 1.0.0 and 1.0.1)?"}}