xbmc-dharma: make PS3 remote more quiet

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-09-25 22:35:32 +02:00
parent a7f1d849e1
commit 06eb539c08

View File

@ -1,33 +1,29 @@
diff -Naur xbmc-dharma-33971/tools/EventClients/Clients/PS3 BD Remote/ps3_remote.py xbmc-dharma-33971.patch/tools/EventClients/Clients/PS3 BD Remote/ps3_remote.py
--- xbmc-dharma-33971/tools/EventClients/Clients/PS3 BD Remote/ps3_remote.py 2010-09-19 14:54:08.000000000 +0200
+++ xbmc-dharma-33971.patch/tools/EventClients/Clients/PS3 BD Remote/ps3_remote.py 2010-09-22 19:58:26.000000000 +0200
@@ -58,14 +58,13 @@
global xbmc
+++ xbmc-dharma-33971.patch/tools/EventClients/Clients/PS3 BD Remote/ps3_remote.py 2010-09-25 22:30:55.174281890 +0200
@@ -59,9 +59,6 @@
target_connected = False
target_address = None
- while target_connected is False:
while target_connected is False:
- xbmc.send_notification("Action Required!",
- "Hold Start+Enter on your remote.",
- bticon)
- print "Searching for %s" % target_name
- print "(Hold Start + Enter on remote to make it discoverable)"
- time.sleep(2)
print "Searching for %s" % target_name
print "(Hold Start + Enter on remote to make it discoverable)"
time.sleep(2)
@@ -72,7 +69,6 @@
except Exception, e:
print "Error performing bluetooth discovery"
print str(e)
- xbmc.send_notification("Error", "Unable to find devices.", bticon)
time.sleep(5)
continue
+ xbmc.send_notification("Action Required!","Hold Start+Enter on your remote.",bticon)
+ print "Searching for %s" % target_name
+ print "(Hold Start + Enter on remote to make it discoverable)"
+ time.sleep(2)
+
+ while target_connected is False:
if not target_address:
try:
nearby_devices = bt_discover_devices()
@@ -109,7 +108,7 @@
@@ -109,7 +105,6 @@
print "ERROR - Could Not Connect. Trying again..."
time.sleep(2)
else:
- xbmc.send_notification("Error", "No remotes were found.", bticon)
+# xbmc.send_notification("Error", "No remotes were found.", bticon)
print "Could not find BD Remote Control. Trying again..."
time.sleep(2)
return (remote,target_address)