spi: resolve merge conflict
Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
commit
8f0344f6bc
|
@ -42,7 +42,7 @@ func run() int {
|
|||
t.Timestamp, t.Hat, t.Value)
|
||||
case *sdl.JoyDeviceEvent:
|
||||
if t.Type == sdl.JOYDEVICEADDED {
|
||||
joysticks[int(t.Which)] = sdl.JoystickOpen(t.Which)
|
||||
joysticks[int(t.Which)] = sdl.JoystickOpen(int(t.Which))
|
||||
if joysticks[int(t.Which)] != nil {
|
||||
fmt.Printf("Joystick %d connected\n", t.Which)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue