Skip to content

Commit

Permalink
fix trx pin error (arendst#22119)
Browse files Browse the repository at this point in the history
  • Loading branch information
gemu2015 authored and hawa-lc4 committed Sep 16, 2024
1 parent 52f1b2d commit 6041098
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tasmota/tasmota_xsns_sensor/xsns_53_sml.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3246,14 +3246,15 @@ dddef_exit:
mmp->params = strtol(lp1, &lp1, 10);
if (*lp1 != ',') goto next_line;
lp1++;
mmp->prefix[SML_PREFIX_SIZE - 1] = 0;
for (uint32_t cnt = 0; cnt < SML_PREFIX_SIZE; cnt++) {
if (*lp1 == SCRIPT_EOL || *lp1 == ',') {
if (!*lp1 || *lp1 == SCRIPT_EOL || *lp1 == ',') {
mmp->prefix[cnt] = 0;
break;
}
mmp->prefix[cnt] = *lp1++;
mmp->prefix[cnt] = *lp1++;
}
mmp->prefix[SML_PREFIX_SIZE - 1] = 0;

if (*lp1 == ',') {
lp1++;
// get TRX pin
Expand Down

0 comments on commit 6041098

Please sign in to comment.