Skip to content

Commit

Permalink
Home Accessory Architect v12.14.2 Merlin
Browse files Browse the repository at this point in the history
  • Loading branch information
RavenSystem committed Dec 22, 2024
1 parent e6ebf7f commit f53bfa3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion HAA/HAA_Main/main/header.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "../../common/common_headers.h"

// Version
#define HAA_FIRMWARE_VERSION "12.14.1"
#define HAA_FIRMWARE_VERSION "12.14.2"
#define HAA_FIRMWARE_BETA_REVISION "" // Format: "b01"
#define HAA_FIRMWARE_CODENAME "Merlin"

Expand Down
5 changes: 5 additions & 0 deletions libs/homekit-rsf/src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,11 @@ void write_characteristic_json(json_stream *json, client_context_t *client, cons
break;
}
case HOMEKIT_FORMAT_FLOAT: {
// Check for 'nan' float value
if (v.float_value != v.float_value) {
v.float_value = 0;
}

if (ch->max_value) {
int max_value = (int) *ch->max_value;
if (v.float_value > max_value) {
Expand Down

0 comments on commit f53bfa3

Please sign in to comment.