[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

test[dji8-ios] B3 Batteries

" Accessing Batteries"
| value |
DJISDKManager product isNil ifTrue: [ ^self abortPage ].
DJISDKManager product allBatteries do: [:value|
(value class selectors
  select: [:each| (each startsWith: #is) and: [each argumentCount = 0] ])
  ,#( index numberOfCells )
  do: [:msg| self print: ' ',msg,'=',(value perform: msg) ]
].