{"action":"created","comment":{"url":"https://api.github.com/repos/betaflight/betaflight/pulls/comments/94081625","pull_request_review_id":14612305,"id":94081625,"diff_hunk":"@@ -1571,32 +1575,35 @@ static void cliAdjustmentRange(char *cmdline)\n }\n \n #ifndef USE_QUAD_MIXER_ONLY\n-static void printMotorMix(uint8_t dumpMask, const motorMixer_t *defaultCustomMotorMixer)\n+static void printMotorMix(uint8_t dumpMask, const motorMixer_t *customMotorMixer, const motorMixer_t *defaultCustomMotorMixer)\n {\n+    const char *format = \"mmix %d %s %s %s %s\\r\\n\";\n     char buf0[8];\n     char buf1[8];\n     char buf2[8];\n     char buf3[8];\n     for (uint32_t i = 0; i < MAX_SUPPORTED_MOTORS; i++) {\n         if (customMotorMixer(i)->throttle == 0.0f)\n             break;\n-        float thr = customMotorMixer(i)->throttle;\n-        float roll = customMotorMixer(i)->roll;\n-        float pitch = customMotorMixer(i)->pitch;\n-        float yaw = customMotorMixer(i)->yaw;\n-        float thrDefault = defaultCustomMotorMixer[i].throttle;\n-        float rollDefault = defaultCustomMotorMixer[i].roll;\n-        float pitchDefault = defaultCustomMotorMixer[i].pitch;\n-        float yawDefault = defaultCustomMotorMixer[i].yaw;\n-        const bool equalsDefault = thr == thrDefault && roll == rollDefault && pitch == pitchDefault && yaw == yawDefault;\n-\n-        const char *format = \"mmix %d %s %s %s %s\\r\\n\";\n-        cliDefaultPrintf(dumpMask, equalsDefault, format,\n-            i,\n-            ftoa(thrDefault, buf0),\n-            ftoa(rollDefault, buf1),\n-            ftoa(pitchDefault, buf2),\n-            ftoa(yawDefault, buf3));\n+        const float thr = customMotorMixer[i].throttle;\n+        const float roll = customMotorMixer[i].roll;\n+        const float pitch = customMotorMixer[i].pitch;\n+        const float yaw = customMotorMixer[i].yaw;\n+        bool equalsDefault = true;","path":"src/main/io/serial_cli.c","position":230,"original_position":230,"commit_id":"10ad967f610fac316dffd607742725e1b8c2502b","original_commit_id":"e4227b2ec91d4baea7a1bb62372bcba77509e0e9","user":{"login":"AndersHoglund","id":15121917,"avatar_url":"https://avatars.githubusercontent.com/u/15121917?v=3","gravatar_id":"","url":"https://api.github.com/users/AndersHoglund","html_url":"https://github.com/AndersHoglund","followers_url":"https://api.github.com/users/AndersHoglund/followers","following_url":"https://api.github.com/users/AndersHoglund/following{/other_user}","gists_url":"https://api.github.com/users/AndersHoglund/gists{/gist_id}","starred_url":"https://api.github.com/users/AndersHoglund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndersHoglund/subscriptions","organizations_url":"https://api.github.com/users/AndersHoglund/orgs","repos_url":"https://api.github.com/users/AndersHoglund/repos","events_url":"https://api.github.com/users/AndersHoglund/events{/privacy}","received_events_url":"https://api.github.com/users/AndersHoglund/received_events","type":"User","site_admin":false},"body":"etc","created_at":"2016-12-28T21:54:18Z","updated_at":"2016-12-28T21:54:18Z","html_url":"https://github.com/betaflight/betaflight/pull/1903#discussion_r94081625","pull_request_url":"https://api.github.com/repos/betaflight/betaflight/pulls/1903","_links":{"self":{"href":"https://api.github.com/repos/betaflight/betaflight/pulls/comments/94081625"},"html":{"href":"https://github.com/betaflight/betaflight/pull/1903#discussion_r94081625"},"pull_request":{"href":"https://api.github.com/repos/betaflight/betaflight/pulls/1903"}}},"pull_request":{"url":"https://api.github.com/repos/betaflight/betaflight/pulls/1903","id":99477823,"html_url":"https://github.com/betaflight/betaflight/pull/1903","diff_url":"https://github.com/betaflight/betaflight/pull/1903.diff","patch_url":"https://github.com/betaflight/betaflight/pull/1903.patch","issue_url":"https://api.github.com/repos/betaflight/betaflight/issues/1903","number":1903,"state":"open","locked":false,"title":"Improvements to CLI diff command. Fixes to CLI print commands.","user":{"login":"martinbudden","id":194586,"avatar_url":"https://avatars.githubusercontent.com/u/194586?v=3","gravatar_id":"","url":"https://api.github.com/users/martinbudden","html_url":"https://github.com/martinbudden","followers_url":"https://api.github.com/users/martinbudden/followers","following_url":"https://api.github.com/users/martinbudden/following{/other_user}","gists_url":"https://api.github.com/users/martinbudden/gists{/gist_id}","starred_url":"https://api.github.com/users/martinbudden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinbudden/subscriptions","organizations_url":"https://api.github.com/users/martinbudden/orgs","repos_url":"https://api.github.com/users/martinbudden/repos","events_url":"https://api.github.com/users/martinbudden/events{/privacy}","received_events_url":"https://api.github.com/users/martinbudden/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-27T19:51:52Z","updated_at":"2016-12-28T21:54:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1fcd1fddc12a5ec9ceee220d3e53f03ef1dc18fe","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/betaflight/betaflight/milestones/3","html_url":"https://github.com/betaflight/betaflight/milestone/3","labels_url":"https://api.github.com/repos/betaflight/betaflight/milestones/3/labels","id":1844374,"number":3,"title":"Betaflight v3.1","description":"v3.1 release\r\n\r\nIncluding:\r\n- config parameters from Cleanflight\r\n- pwm mapping tidy up","creator":{"login":"blckmn","id":6168871,"avatar_url":"https://avatars.githubusercontent.com/u/6168871?v=3","gravatar_id":"","url":"https://api.github.com/users/blckmn","html_url":"https://github.com/blckmn","followers_url":"https://api.github.com/users/blckmn/followers","following_url":"https://api.github.com/users/blckmn/following{/other_user}","gists_url":"https://api.github.com/users/blckmn/gists{/gist_id}","starred_url":"https://api.github.com/users/blckmn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blckmn/subscriptions","organizations_url":"https://api.github.com/users/blckmn/orgs","repos_url":"https://api.github.com/users/blckmn/repos","events_url":"https://api.github.com/users/blckmn/events{/privacy}","received_events_url":"https://api.github.com/users/blckmn/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":207,"state":"open","created_at":"2016-06-23T00:05:58Z","updated_at":"2016-12-28T19:05:56Z","due_on":"2016-12-31T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/betaflight/betaflight/pulls/1903/commits","review_comments_url":"https://api.github.com/repos/betaflight/betaflight/pulls/1903/comments","review_comment_url":"https://api.github.com/repos/betaflight/betaflight/pulls/comments{/number}","comments_url":"https://api.github.com/repos/betaflight/betaflight/issues/1903/comments","statuses_url":"https://api.github.com/repos/betaflight/betaflight/statuses/10ad967f610fac316dffd607742725e1b8c2502b","head":{"label":"martinbudden:bf_pg_cli2","ref":"bf_pg_cli2","sha":"10ad967f610fac316dffd607742725e1b8c2502b","user":{"login":"martinbudden","id":194586,"avatar_url":"https://avatars.githubusercontent.com/u/194586?v=3","gravatar_id":"","url":"https://api.github.com/users/martinbudden","html_url":"https://github.com/martinbudden","followers_url":"https://api.github.com/users/martinbudden/followers","following_url":"https://api.github.com/users/martinbudden/following{/other_user}","gists_url":"https://api.github.com/users/martinbudden/gists{/gist_id}","starred_url":"https://api.github.com/users/martinbudden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinbudden/subscriptions","organizations_url":"https://api.github.com/users/martinbudden/orgs","repos_url":"https://api.github.com/users/martinbudden/repos","events_url":"https://api.github.com/users/martinbudden/events{/privacy}","received_events_url":"https://api.github.com/users/martinbudden/received_events","type":"User","site_admin":false},"repo":{"id":46673290,"name":"cleanflight","full_name":"martinbudden/cleanflight","owner":{"login":"martinbudden","id":194586,"avatar_url":"https://avatars.githubusercontent.com/u/194586?v=3","gravatar_id":"","url":"https://api.github.com/users/martinbudden","html_url":"https://github.com/martinbudden","followers_url":"https://api.github.com/users/martinbudden/followers","following_url":"https://api.github.com/users/martinbudden/following{/other_user}","gists_url":"https://api.github.com/users/martinbudden/gists{/gist_id}","starred_url":"https://api.github.com/users/martinbudden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinbudden/subscriptions","organizations_url":"https://api.github.com/users/martinbudden/orgs","repos_url":"https://api.github.com/users/martinbudden/repos","events_url":"https://api.github.com/users/martinbudden/events{/privacy}","received_events_url":"https://api.github.com/users/martinbudden/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/martinbudden/cleanflight","description":"Clean-code version of the baseflight flight controller firmware","fork":true,"url":"https://api.github.com/repos/martinbudden/cleanflight","forks_url":"https://api.github.com/repos/martinbudden/cleanflight/forks","keys_url":"https://api.github.com/repos/martinbudden/cleanflight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/martinbudden/cleanflight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/martinbudden/cleanflight/teams","hooks_url":"https://api.github.com/repos/martinbudden/cleanflight/hooks","issue_events_url":"https://api.github.com/repos/martinbudden/cleanflight/issues/events{/number}","events_url":"https://api.github.com/repos/martinbudden/cleanflight/events","assignees_url":"https://api.github.com/repos/martinbudden/cleanflight/assignees{/user}","branches_url":"https://api.github.com/repos/martinbudden/cleanflight/branches{/branch}","tags_url":"https://api.github.com/repos/martinbudden/cleanflight/tags","blobs_url":"https://api.github.com/repos/martinbudden/cleanflight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/martinbudden/cleanflight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/martinbudden/cleanflight/git/refs{/sha}","trees_url":"https://api.github.com/repos/martinbudden/cleanflight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/martinbudden/cleanflight/statuses/{sha}","languages_url":"https://api.github.com/repos/martinbudden/cleanflight/languages","stargazers_url":"https://api.github.com/repos/martinbudden/cleanflight/stargazers","contributors_url":"https://api.github.com/repos/martinbudden/cleanflight/contributors","subscribers_url":"https://api.github.com/repos/martinbudden/cleanflight/subscribers","subscription_url":"https://api.github.com/repos/martinbudden/cleanflight/subscription","commits_url":"https://api.github.com/repos/martinbudden/cleanflight/commits{/sha}","git_commits_url":"https://api.github.com/repos/martinbudden/cleanflight/git/commits{/sha}","comments_url":"https://api.github.com/repos/martinbudden/cleanflight/comments{/number}","issue_comment_url":"https://api.github.com/repos/martinbudden/cleanflight/issues/comments{/number}","contents_url":"https://api.github.com/repos/martinbudden/cleanflight/contents/{+path}","compare_url":"https://api.github.com/repos/martinbudden/cleanflight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/martinbudden/cleanflight/merges","archive_url":"https://api.github.com/repos/martinbudden/cleanflight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/martinbudden/cleanflight/downloads","issues_url":"https://api.github.com/repos/martinbudden/cleanflight/issues{/number}","pulls_url":"https://api.github.com/repos/martinbudden/cleanflight/pulls{/number}","milestones_url":"https://api.github.com/repos/martinbudden/cleanflight/milestones{/number}","notifications_url":"https://api.github.com/repos/martinbudden/cleanflight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/martinbudden/cleanflight/labels{/name}","releases_url":"https://api.github.com/repos/martinbudden/cleanflight/releases{/id}","deployments_url":"https://api.github.com/repos/martinbudden/cleanflight/deployments","created_at":"2015-11-22T18:18:03Z","updated_at":"2016-01-12T14:28:11Z","pushed_at":"2016-12-28T21:39:36Z","git_url":"git://github.com/martinbudden/cleanflight.git","ssh_url":"git@github.com:martinbudden/cleanflight.git","clone_url":"https://github.com/martinbudden/cleanflight.git","svn_url":"https://github.com/martinbudden/cleanflight","homepage":"http://cleanflight.com","size":131341,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"betaflight:master","ref":"master","sha":"d557281f0af18747c15c6b6f5c3bfb87ca7ec63c","user":{"login":"betaflight","id":19597933,"avatar_url":"https://avatars.githubusercontent.com/u/19597933?v=3","gravatar_id":"","url":"https://api.github.com/users/betaflight","html_url":"https://github.com/betaflight","followers_url":"https://api.github.com/users/betaflight/followers","following_url":"https://api.github.com/users/betaflight/following{/other_user}","gists_url":"https://api.github.com/users/betaflight/gists{/gist_id}","starred_url":"https://api.github.com/users/betaflight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betaflight/subscriptions","organizations_url":"https://api.github.com/users/betaflight/orgs","repos_url":"https://api.github.com/users/betaflight/repos","events_url":"https://api.github.com/users/betaflight/events{/privacy}","received_events_url":"https://api.github.com/users/betaflight/received_events","type":"Organization","site_admin":false},"repo":{"id":37060852,"name":"betaflight","full_name":"betaflight/betaflight","owner":{"login":"betaflight","id":19597933,"avatar_url":"https://avatars.githubusercontent.com/u/19597933?v=3","gravatar_id":"","url":"https://api.github.com/users/betaflight","html_url":"https://github.com/betaflight","followers_url":"https://api.github.com/users/betaflight/followers","following_url":"https://api.github.com/users/betaflight/following{/other_user}","gists_url":"https://api.github.com/users/betaflight/gists{/gist_id}","starred_url":"https://api.github.com/users/betaflight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betaflight/subscriptions","organizations_url":"https://api.github.com/users/betaflight/orgs","repos_url":"https://api.github.com/users/betaflight/repos","events_url":"https://api.github.com/users/betaflight/events{/privacy}","received_events_url":"https://api.github.com/users/betaflight/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/betaflight/betaflight","description":"Betaflight Flight Controller Firmware","fork":true,"url":"https://api.github.com/repos/betaflight/betaflight","forks_url":"https://api.github.com/repos/betaflight/betaflight/forks","keys_url":"https://api.github.com/repos/betaflight/betaflight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/betaflight/betaflight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/betaflight/betaflight/teams","hooks_url":"https://api.github.com/repos/betaflight/betaflight/hooks","issue_events_url":"https://api.github.com/repos/betaflight/betaflight/issues/events{/number}","events_url":"https://api.github.com/repos/betaflight/betaflight/events","assignees_url":"https://api.github.com/repos/betaflight/betaflight/assignees{/user}","branches_url":"https://api.github.com/repos/betaflight/betaflight/branches{/branch}","tags_url":"https://api.github.com/repos/betaflight/betaflight/tags","blobs_url":"https://api.github.com/repos/betaflight/betaflight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/betaflight/betaflight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/betaflight/betaflight/git/refs{/sha}","trees_url":"https://api.github.com/repos/betaflight/betaflight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/betaflight/betaflight/statuses/{sha}","languages_url":"https://api.github.com/repos/betaflight/betaflight/languages","stargazers_url":"https://api.github.com/repos/betaflight/betaflight/stargazers","contributors_url":"https://api.github.com/repos/betaflight/betaflight/contributors","subscribers_url":"https://api.github.com/repos/betaflight/betaflight/subscribers","subscription_url":"https://api.github.com/repos/betaflight/betaflight/subscription","commits_url":"https://api.github.com/repos/betaflight/betaflight/commits{/sha}","git_commits_url":"https://api.github.com/repos/betaflight/betaflight/git/commits{/sha}","comments_url":"https://api.github.com/repos/betaflight/betaflight/comments{/number}","issue_comment_url":"https://api.github.com/repos/betaflight/betaflight/issues/comments{/number}","contents_url":"https://api.github.com/repos/betaflight/betaflight/contents/{+path}","compare_url":"https://api.github.com/repos/betaflight/betaflight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/betaflight/betaflight/merges","archive_url":"https://api.github.com/repos/betaflight/betaflight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/betaflight/betaflight/downloads","issues_url":"https://api.github.com/repos/betaflight/betaflight/issues{/number}","pulls_url":"https://api.github.com/repos/betaflight/betaflight/pulls{/number}","milestones_url":"https://api.github.com/repos/betaflight/betaflight/milestones{/number}","notifications_url":"https://api.github.com/repos/betaflight/betaflight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/betaflight/betaflight/labels{/name}","releases_url":"https://api.github.com/repos/betaflight/betaflight/releases{/id}","deployments_url":"https://api.github.com/repos/betaflight/betaflight/deployments","created_at":"2015-06-08T10:37:44Z","updated_at":"2016-12-28T19:20:52Z","pushed_at":"2016-12-28T21:39:37Z","git_url":"git://github.com/betaflight/betaflight.git","ssh_url":"git@github.com:betaflight/betaflight.git","clone_url":"https://github.com/betaflight/betaflight.git","svn_url":"https://github.com/betaflight/betaflight","homepage":"","size":118516,"stargazers_count":741,"watchers_count":741,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":315,"mirror_url":null,"open_issues_count":57,"forks":315,"open_issues":57,"watchers":741,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/betaflight/betaflight/pulls/1903"},"html":{"href":"https://github.com/betaflight/betaflight/pull/1903"},"issue":{"href":"https://api.github.com/repos/betaflight/betaflight/issues/1903"},"comments":{"href":"https://api.github.com/repos/betaflight/betaflight/issues/1903/comments"},"review_comments":{"href":"https://api.github.com/repos/betaflight/betaflight/pulls/1903/comments"},"review_comment":{"href":"https://api.github.com/repos/betaflight/betaflight/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/betaflight/betaflight/pulls/1903/commits"},"statuses":{"href":"https://api.github.com/repos/betaflight/betaflight/statuses/10ad967f610fac316dffd607742725e1b8c2502b"}}}}
{"actor":{"display_login":"AndersHoglund"}}