Module: TimexDatalinkClient::Helpers::LsbMsbFormatter

Included in:
Protocol6::Eeprom, Protocol7::Eeprom::Calendar, Protocol7::Eeprom::Calendar::Event, Protocol7::Eeprom::Games, Protocol7::Eeprom::Speech
Defined in:
lib/timex_datalink_client/helpers/lsb_msb_formatter.rb

Instance Method Summary collapse

Instance Method Details

#lsb_msb_format_for(value) ⇒ Object



6
7
8
# File 'lib/timex_datalink_client/helpers/lsb_msb_formatter.rb', line 6

def lsb_msb_format_for(value)
  value.divmod(256).reverse
end