{"action":"opened","issue":{"url":"https://api.github.com/repos/cleanflight/cleanflight/issues/954","labels_url":"https://api.github.com/repos/cleanflight/cleanflight/issues/954/labels{/name}","comments_url":"https://api.github.com/repos/cleanflight/cleanflight/issues/954/comments","events_url":"https://api.github.com/repos/cleanflight/cleanflight/issues/954/events","html_url":"https://github.com/cleanflight/cleanflight/issues/954","id":81111364,"number":954,"title":"Sensors - Should call batteryInit() whenever a battery is connected","user":{"login":"DarkVegetableMatter","id":7756641,"avatar_url":"https://avatars.githubusercontent.com/u/7756641?v=3","gravatar_id":"","url":"https://api.github.com/users/DarkVegetableMatter","html_url":"https://github.com/DarkVegetableMatter","followers_url":"https://api.github.com/users/DarkVegetableMatter/followers","following_url":"https://api.github.com/users/DarkVegetableMatter/following{/other_user}","gists_url":"https://api.github.com/users/DarkVegetableMatter/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkVegetableMatter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkVegetableMatter/subscriptions","organizations_url":"https://api.github.com/users/DarkVegetableMatter/orgs","repos_url":"https://api.github.com/users/DarkVegetableMatter/repos","events_url":"https://api.github.com/users/DarkVegetableMatter/events{/privacy}","received_events_url":"https://api.github.com/users/DarkVegetableMatter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-26T19:56:03Z","updated_at":"2015-05-26T19:56:03Z","closed_at":null,"body":"If the FC (Naze in my case) is powered up by USB then the battery is plugged in then the number of cells is incorrect. \r\n\r\nbatteryInit() is called once by main and should be called whenever VBatt rises above some 'battery present' threshold"}}