Skip to content

Commit

Permalink
Home Accessory Architect v0.6.14
Browse files Browse the repository at this point in the history
  • Loading branch information
RavenSystem committed Nov 13, 2019
1 parent f9e67c4 commit 19cf438
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions devices/HAA/main.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Home Accessory Architect
*
* v0.6.13
* v0.6.14
*
* Copyright 2019 José Antonio Jiménez Campos (@RavenSystem)
*
Expand Down Expand Up @@ -46,8 +46,8 @@
#include <cJSON.h>

// Version
#define FIRMWARE_VERSION "0.6.13"
#define FIRMWARE_VERSION_OCTAL 000615 // Matches as example: firmware_revision 2.3.8 = 02.03.10 (octal) = config_number 020310
#define FIRMWARE_VERSION "0.6.14"
#define FIRMWARE_VERSION_OCTAL 000616 // Matches as example: firmware_revision 2.3.8 = 02.03.10 (octal) = config_number 020310

// Characteristic types (ch_type)
#define CH_TYPE_BOOL 0
Expand Down Expand Up @@ -177,6 +177,8 @@
#define ACC_TYPE_TH_SENSOR 24
#define ACC_TYPE_LIGHTBULB 30

#define SETUP_MODE_ACTIVATE_COUNT 8

#ifndef HAA_MAX_ACCESSORIES
#define HAA_MAX_ACCESSORIES 4 // Max number of accessories before use a bridge
#endif
Expand Down Expand Up @@ -340,7 +342,7 @@ void setup_mode_toggle_upcount() {
}

void setup_mode_toggle() {
if (setup_mode_toggle_counter > 10) {
if (setup_mode_toggle_counter >= SETUP_MODE_ACTIVATE_COUNT) {
setup_mode_call(0, NULL, 0);
}

Expand Down Expand Up @@ -2224,6 +2226,7 @@ void normal_mode_init() {

multipwm_init(pwm_info);
multipwm_set_freq(pwm_info, pwm_freq);
pwm_freq--;
pwm_info->channels = 0;
}

Expand Down
2 changes: 1 addition & 1 deletion external_libs/wifi_config_haa/content/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
.nonetworks{text-align:center;margin:1em 0;}
.field{margin-bottom:0.5em;}
.field.required label::before{content:"*";color:red;}
</style></head><body><div class="container"><h1>Home Accessory Architect v0.6.13</h1>
</style></head><body><div class="container"><h1>Home Accessory Architect v0.6.14</h1>
<form action="/settings" method="post">
<div class="field required conf">
<label for="conf">JSON Config:</label>
Expand Down

0 comments on commit 19cf438

Please sign in to comment.