Skip to content

Commit

Permalink
fixing compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ballle98 committed May 20, 2024
1 parent fe691a8 commit 04fb481
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion onetouch_aq_programmer.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ void set_aqualink_onetouch_heater_setpoint( struct aqualinkdata *aq_data, bool i
int i;
int len;
//char *st;
unsigned char direction;
unsigned char direction = KEY_ONET_UP;

if ( !goto_onetouch_menu(aq_data, OTM_SET_TEMP) ){
LOG(ONET_LOG,LOG_ERR, "OneTouch device programmer failed to get heater temp menu\n");
Expand Down
12 changes: 6 additions & 6 deletions pda_aq_programmer.c
Original file line number Diff line number Diff line change
Expand Up @@ -934,23 +934,23 @@ bool set_PDA_numeric_field_value(struct aqualinkdata *aq_data, int val, int cur_
}

if (cur_val == -1) {
char *hghlight_chars;
int hlight_length=0;
char *hghlight_chars = NULL;
int hlight_length = 0;
int i=0;
hghlight_chars = pda_m_hlightchars(&hlight_length); // NSF May need to take this out and there for the LOG entry after while
while (hlight_length >= 15 || hlight_length <= 0) {
delay(500);
//delay(500);
waitForPDANextMessageType(aq_data,CMD_PDA_HIGHLIGHTCHARS, 1, 0);
hghlight_chars = pda_m_hlightchars(&hlight_length);
LOG(PDA_LOG,LOG_DEBUG, "Numeric selector, highlight chars '%.*s'\n",hlight_length , hghlight_chars);
LOG(PDA_LOG,LOG_DEBUG, "Numeric selector, highlight chars '%.*s'\n", hlight_length, hghlight_chars);
if (++i >= 20) {
LOG(PDA_LOG,LOG_ERR, "Numeric selector, didn't find highlight chars, current selection is '%.*s'\n",hlight_length , hghlight_chars);
LOG(PDA_LOG,LOG_ERR, "Numeric selector, didn't find highlight chars, current selection is '%.*s'\n", hlight_length, hghlight_chars);
return false;
}
}

cur_val = atoi(hghlight_chars);
LOG(PDA_LOG,LOG_DEBUG, "Numeric selector, highlight chars '%.*s', numeric value using %d\n",hlight_length , hghlight_chars, cur_val);
LOG(PDA_LOG,LOG_DEBUG, "Numeric selector, highlight chars '%.*s', numeric value using %d\n", hlight_length, hghlight_chars, cur_val);
}

if (val < cur_val) {
Expand Down

0 comments on commit 04fb481

Please sign in to comment.