Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Wahren committed Feb 22, 2014
2 parents 1afa9a4 + 57fceeb commit ea9ad32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mbus/mbus-protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -2488,7 +2488,7 @@ mbus_data_record_value(mbus_data_record *record)
//------------------------------------------------------------------------------
long mbus_data_record_storage_number(mbus_data_record *record)
{
int bit_index;
int bit_index = 0;
long result = 0;
int i;

Expand All @@ -2506,15 +2506,15 @@ long mbus_data_record_storage_number(mbus_data_record *record)
return result;
}

return 0;
return -1;
}

//------------------------------------------------------------------------------
/// Return the tariff for a variable-length data record
//------------------------------------------------------------------------------
long mbus_data_record_tariff(mbus_data_record *record)
{
int bit_index;
int bit_index = 0;
long result = 0;
int i;

Expand All @@ -2537,7 +2537,7 @@ long mbus_data_record_tariff(mbus_data_record *record)
//------------------------------------------------------------------------------
int mbus_data_record_device(mbus_data_record *record)
{
int bit_index;
int bit_index = 0;
int result = 0;
int i;

Expand Down

0 comments on commit ea9ad32

Please sign in to comment.