Skip to content

Commit

Permalink
Fix Piracast to make it work on raspberry-Pi
Browse files Browse the repository at this point in the history
Signed-off-by: Manish Patel <[email protected]>
  • Loading branch information
manishj-patel committed Jul 15, 2014
1 parent 9f3bb98 commit 614fa6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mgmt_sys/src/sx_mgmt_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void mgmt_sys_init(

sx_mgmt_video_scheduler_init();

// Initialize video decoder module.
// Initialize audio decoder module.
sx_mgmt_audio_decoder_init();

sx_mgmt_audio_scheduler_init();
Expand Down
5 changes: 3 additions & 2 deletions scripts/piracast.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ def leased_ip_get():

while 1:

# Launch application
get_stdout(cmd_launch_core_app)
# Don't launch application, because it stuck
# the execution
# get_stdout(cmd_launch_core_app)

# Start DHCP
print get_stdout(cmd_dhcp_start)
Expand Down
2 changes: 1 addition & 1 deletion scripts/wfd.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def p2p_peer_devaddr_get():
print 'p2p_peer_devaddr_get:'
output = get_stdout(["iwpriv", "wlan0", "p2p_get", "peer_deva"])
match = re.search(r'\n(.*)$', output)
mac = '%s%s:%s%s:%s%s:%s%s:%s%s:%s%s' % match.group(1)[0:11]
mac = ':'.join(re.findall('..', match.group(1)))
#mac = match.group(1)[0] + match.group(1)[1] + ':' \
# + match.group(1)[2] + match.group(1)[3] + ':' \
# + match.group(1)[4] + match.group(1)[5] + ':' \
Expand Down

0 comments on commit 614fa6e

Please sign in to comment.