Skip to content

Commit

Permalink
Adjust for renamed colour class
Browse files Browse the repository at this point in the history
  • Loading branch information
Xasin committed Oct 17, 2021
1 parent af737c5 commit 42ad5de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions ESP32/PropertyPoint/SingleProperty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ SinglePropertySpecializationCode(std::string,
cJSON_CreateStringReference(this->value.data()))

template<>
cJSON * SingleProperty<Xasin::NeoController::Color>::get_current_state() {
cJSON * SingleProperty<XNM::Neo::Color>::get_current_state() {
cJSON * out = cJSON_CreateObject();
cJSON_AddItemToObjectCS(out, "value", cJSON_CreateString(this->value.to_s().data()));
return out;
}
template <>
void SingleProperty<Xasin::NeoController::Color>::process_json_command(const cJSON * data) {
void SingleProperty<XNM::Neo::Color>::process_json_command(const cJSON * data) {
ESP_LOGD("PROPP", "Property %s got update.", this->key);
if(!cJSON_IsObject(data))
return;
Expand All @@ -63,7 +63,7 @@ void SingleProperty<Xasin::NeoController::Color>::process_json_command(const cJS
return;

bool ok = false;
auto c = Xasin::NeoController::Color::strtoc(data->valuestring, &ok);
auto c = XNM::Neo::Color::strtoc(data->valuestring, &ok);

if(!ok)
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "BaseProperty.h"

#include <xasin/neocontroller/Color.h>
#include <xnm/neocontroller/Color.h>
#include <string>

namespace XNM {
Expand Down Expand Up @@ -54,7 +54,7 @@ SinglePropertySpecialization(int);

SinglePropertySpecialization(std::string);

SinglePropertySpecialization(Xasin::NeoController::Color);
SinglePropertySpecialization(XNM::Neo::Color);

}
}

0 comments on commit 42ad5de

Please sign in to comment.