mirror of
https://github.com/lumapu/ahoy.git
synced 2025-04-30 02:36:20 +02:00
remove redundant check for nullpointer
(cherry picked from commit a1de637793bdc14627c68fc1b03d61d5189758cd) (cherry picked from commit 7ba88180c50d7d0b6c971a477987bb5ded5aa9d8) (cherry picked from commit 6888d571834ad5cf4b32a00536501e88112f7049) (cherry picked from commit 8a8b8a61f354992823a77feca3a5193f8c53880e)
This commit is contained in:
parent
2bc6610a83
commit
58044c34aa
1 changed files with 23 additions and 25 deletions
|
@ -288,7 +288,6 @@ class Inverter {
|
|||
uint8_t end = ptr + rec->assign[pos].num;
|
||||
uint16_t div = rec->assign[pos].div;
|
||||
|
||||
if(NULL != rec) {
|
||||
if(CMD_CALC != div) {
|
||||
uint32_t val = 0;
|
||||
do {
|
||||
|
@ -315,7 +314,6 @@ class Inverter {
|
|||
rec->record[pos] = (REC_TYP)(val);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(rec == &recordMeas) {
|
||||
DPRINTLN(DBG_VERBOSE, "add real time");
|
||||
|
|
Loading…
Add table
Reference in a new issue