Permalink
Browse files

Tweak trudy_packet_message

  • Loading branch information...
1 parent 81d3c08 commit 5eb7bf9cdfd2bdc20865eed384385b59f20ae7bd @quimarche committed Oct 1, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 trudy.rb
View
@@ -63,11 +63,11 @@ def trudy_packet_head
[0x7F]
end
- def trudy_packet_mu_message url
- trudy_packet_head + trudy_packet_mu_message_block(url) + trudy_packet_foot
+ def trudy_packet_message url
+ trudy_packet_head + trudy_packet_message_block(url) + trudy_packet_foot
end
- def trudy_packet_mu_message_block url
+ def trudy_packet_message_block url
trudy_obfuscated_message = trudy_obfuscate_message "ID 0\nMU #{ENV['TRUDY_HOST']}/#{url}"
[0x0A, 0x00, 0x00, trudy_obfuscated_message.length] + trudy_obfuscated_message
end
@@ -106,7 +106,7 @@ def trudy_packet_reboot_block
send_packet trudy_packet_ping PING_SECONDS
else
if queue.message_count > 0
- send_packet trudy_packet_mu_message queue.pop[:payload]
+ send_packet trudy_packet_message queue.pop[:payload]
else
send_packet trudy_packet_ambient AMBIENT_FREQUENCY
end

0 comments on commit 5eb7bf9

Please sign in to comment.