Skip to content

Commit

Permalink
meters-sun-spec: Add model ID in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
photron committed Jan 28, 2025
1 parent 429a6d9 commit c9e362f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion software/src/modules/meters_sun_spec/meter_sun_spec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ void MeterSunSpec::scan_next()
}
else {
if (block_length != model_parser->get_model_length()) {
logger.printfln("Configured SunSpec model found but has incorrect length. Expected %u, got %u.", model_parser->get_model_length(), block_length);
logger.printfln("Configured SunSpec model %u/%u found but has incorrect length. Expected %u, got %u.",
model_id, model_instance, model_parser->get_model_length(), block_length);
scan_start_delay();
}
else {
Expand Down

0 comments on commit c9e362f

Please sign in to comment.