1) Give a description of the problem
Can;t get the value for the button that’s pressed on a Minimote
2) What is the expected behavior?
Select statement should resolve button #
3) What is happening/not happening?
Variable from device not being populated with button number. I do get presses/held and total # of buttons reported.
numberofbuttons variable should be numberofbutton (no “s”) and return the button pressed
17/10/2017, 12:09:23 +623ms
+1ms ╔Received event [Brewing].button = pushed with a delay of 76ms
+83ms ║RunTime Analysis CS > 16ms > PS > 38ms > PE > 30ms > CE
+92ms ║Runtime (40637 bytes) successfully initialized in 38ms (v0.2.0fa.20171011) (89ms)
+93ms ║╔Execution stage started
+109ms ║║Evaluating switch with values [[i::4183e9a9d415ad25cd94b65d4f866063::numButtons, v:[t:string, v:4, d::4183e9a9d415ad25cd94b65d4f866063:, a:numButtons, i:[], x:false, vt:string]]]
+113ms ║║Comparison (string) 4 is (integer) 1 = false (2ms)
+117ms ║║Comparison (string) 4 is (integer) 2 = false (1ms)
+120ms ║║Cancelling statement #23’s schedules…
+130ms ║║Executed virtual command log (1ms)
+139ms ║║pushed
+139ms ║║Executed virtual command log (1ms)
+147ms ║║INACTIVE
+148ms ║║Executed virtual command log (1ms)
+157ms ║║4
+157ms ║║Executed virtual command log (1ms)
+160ms ║╚Execution stage complete. (67ms)
+165ms ╚Event processed successfully (165ms)