Skip to content

Commit

Permalink
(yet) another attempt at getting the code to display in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mangled committed Jul 12, 2011
1 parent 1e943cd commit fbb0317
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.rdoc
Expand Up @@ -29,21 +29,21 @@ To-do
else
address = "00:13:EF:00:4B:46" # E.g.
channel = 3 # I will give some help on this before the gem is released :-)

device = if use_mock_mindset
mock = Mindset::MockDevice.new(1024, true)
mock.queue_event_attention(22)
mock
mock = Mindset::MockDevice.new(1024, true)
mock.queue_event_attention(22)
mock
else
Mindset::Device.new()
Mindset::Device.new()
end

# Create the stream parser and payload parser (with the default logger)
parser = Mindset::ByteParser.new(Mindset::PayloadParser.new(Mindset::EventLogger.new))

# Parse the stream
device.listen(address, channel) do |device|
Mindset::StreamParser.parse(device, parser)
Mindset::StreamParser.parse(device, parser)
end
end

Expand Down

0 comments on commit fbb0317

Please sign in to comment.