Skip to content

Commit

Permalink
return values corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
jyberg committed Aug 2, 2020
1 parent 3743bd0 commit 3c88dc8
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
12 changes: 6 additions & 6 deletions NexSlider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ bool NexSlider::setValue(uint32_t number)
return recvRetCommandFinished();
}

uint32_t NexSlider::Get_background_color_bco(uint32_t *number)
bool NexSlider::Get_background_color_bco(uint32_t *number)
{
String cmd;
cmd += "get ";
Expand Down Expand Up @@ -72,7 +72,7 @@ bool NexSlider::Set_background_color_bco(uint32_t number)
return recvRetCommandFinished();
}

uint32_t NexSlider::Get_font_color_pco(uint32_t *number)
bool NexSlider::Get_font_color_pco(uint32_t *number)
{
String cmd;
cmd += "get ";
Expand Down Expand Up @@ -100,7 +100,7 @@ bool NexSlider::Set_font_color_pco(uint32_t number)
return recvRetCommandFinished();
}

uint32_t NexSlider::Get_pointer_thickness_wid(uint32_t *number)
bool NexSlider::Get_pointer_thickness_wid(uint32_t *number)
{
String cmd;
cmd += "get ";
Expand Down Expand Up @@ -128,7 +128,7 @@ bool NexSlider::Set_pointer_thickness_wid(uint32_t number)
return recvRetCommandFinished();
}

uint32_t NexSlider::Get_cursor_height_hig(uint32_t *number)
bool NexSlider::Get_cursor_height_hig(uint32_t *number)
{
String cmd;
cmd += "get ";
Expand Down Expand Up @@ -156,7 +156,7 @@ bool NexSlider::Set_cursor_height_hig(uint32_t number)
return recvRetCommandFinished();
}

uint32_t NexSlider::getMaxval(uint32_t *number)
bool NexSlider::getMaxval(uint32_t *number)
{
String cmd;
cmd += "get ";
Expand Down Expand Up @@ -184,7 +184,7 @@ bool NexSlider::setMaxval(uint32_t number)
return recvRetCommandFinished();
}

uint32_t NexSlider::getMinval(uint32_t *number)
bool NexSlider::getMinval(uint32_t *number)
{
String cmd;
cmd += "get ";
Expand Down
32 changes: 16 additions & 16 deletions NexSlider.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ class NexSlider: public NexTouch
/**
* Get bco attribute of component
*
* @param number - buffer storing data retur
* @return the length of the data
* @param number - buffer storing data return
* @return true if success, false for failure
*/
uint32_t Get_background_color_bco(uint32_t *number);
bool Get_background_color_bco(uint32_t *number);

/**
* Set bco attribute of component
Expand All @@ -75,10 +75,10 @@ class NexSlider: public NexTouch
/**
* Get pco attribute of component
*
* @param number - buffer storing data retur
* @return the length of the data
* @param number - buffer storing data return
* @return true if success, false for failure
*/
uint32_t Get_font_color_pco(uint32_t *number);
bool Get_font_color_pco(uint32_t *number);

/**
* Set pco attribute of component
Expand All @@ -91,10 +91,10 @@ class NexSlider: public NexTouch
/**
* Get wid attribute of component
*
* @param number - buffer storing data retur
* @return the length of the data
* @param number - buffer storing data return
* @return true if success, false for failure
*/
uint32_t Get_pointer_thickness_wid(uint32_t *number);
bool Get_pointer_thickness_wid(uint32_t *number);

/**
* Set wid attribute of component
Expand All @@ -108,9 +108,9 @@ class NexSlider: public NexTouch
* Get hig attribute of component
*
* @param number - buffer storing data retur
* @return the length of the data
* @return true if success, false for failure
*/
uint32_t Get_cursor_height_hig(uint32_t *number);
bool Get_cursor_height_hig(uint32_t *number);

/**
* Set hig attribute of component
Expand All @@ -124,9 +124,9 @@ class NexSlider: public NexTouch
* Get maxval attribute of component
*
* @param number - buffer storing data retur
* @return the length of the data
* @return true if success, false for failure
*/
uint32_t getMaxval(uint32_t *number);
bool getMaxval(uint32_t *number);

/**
* Set maxval attribute of component
Expand All @@ -139,10 +139,10 @@ class NexSlider: public NexTouch
/**
* Get minval attribute of component
*
* @param number - buffer storing data retur
* @return the length of the data
* @param number - buffer storing data return
* @return true if success, false for failure
*/
uint32_t getMinval(uint32_t *number);
bool getMinval(uint32_t *number);

/**
* Set minval attribute of component
Expand Down
Binary file modified examples/CompPage/CompPage_v0_43.HMI
Binary file not shown.
Binary file modified examples/CompRtc/CompRtc.HMI
Binary file not shown.
Binary file modified examples/CompWaveform/CompWaveform_v0_43.HMI
Binary file not shown.

0 comments on commit 3c88dc8

Please sign in to comment.