Skip to content

Commit

Permalink
Use typedefs for CREATE_CHAR() to ensure consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
HomeSpan committed Jun 30, 2024
1 parent 8f13358 commit b6ed73a
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 120 deletions.
2 changes: 1 addition & 1 deletion src/HomeSpan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1953,7 +1953,7 @@ size_t SpanCharacteristic::getDataGeneric(uint8_t *data, size_t len, UVal &val){

///////////////////////////////

void SpanCharacteristic::setData(uint8_t *data, size_t len, boolean notify){
void SpanCharacteristic::setData(const uint8_t *data, size_t len, boolean notify){

setValCheck();
uvSet(value,{data,len});
Expand Down
2 changes: 1 addition & 1 deletion src/HomeSpan.h
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ class SpanCharacteristic{
size_t getNewTLV(TLV8 &tlv){return(getTLVGeneric(tlv,newValue));} // gets the newValue for tlv8-based Characteristics

void setString(const char *val, boolean notify=true); // sets the value and newValue for string-based Characteristic
void setData(uint8_t *data, size_t len, boolean notify=true); // sets the value and newValue for data-based Characteristic
void setData(const uint8_t *data, size_t len, boolean notify=true); // sets the value and newValue for data-based Characteristic
void setTLV(const TLV8 &tlv, boolean notify=true); // sets the value and newValue for tlv8-based Characteristic

template <typename T> void setVal(T val, boolean notify=true){ // sets the value and newValue for numeric-based Characteristics
Expand Down
Loading

0 comments on commit b6ed73a

Please sign in to comment.