mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-12 08:26:38 +02:00
potential fix #270 (number of inverter channels was a fixed value of 5)
This commit is contained in:
parent
50bfbf8a38
commit
aca1688ceb
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@
|
||||||
#define DTU_RADIO_ID ((uint64_t)0x1234567801ULL)
|
#define DTU_RADIO_ID ((uint64_t)0x1234567801ULL)
|
||||||
|
|
||||||
// default NRF24 power, possible values (0 - 3)
|
// default NRF24 power, possible values (0 - 3)
|
||||||
#define DEF_AMPLIFIERPOWER 2
|
#define DEF_AMPLIFIERPOWER 1
|
||||||
|
|
||||||
// number of packets hold in buffer
|
// number of packets hold in buffer
|
||||||
#define PACKET_BUFFER_SIZE 30
|
#define PACKET_BUFFER_SIZE 30
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
main.appendChild(ch0);
|
main.appendChild(ch0);
|
||||||
|
|
||||||
|
|
||||||
for(var i = 1; i < 5; i++) {
|
for(var i = 1; i < (iv["channels"] + 1); i++) {
|
||||||
var ch = div(["ch"]);
|
var ch = div(["ch"]);
|
||||||
ch.appendChild(span(("" == iv["ch_names"][i]) ? ("CHANNEL " + i) : iv["ch_names"][i], ["head"]));
|
ch.appendChild(span(("" == iv["ch_names"][i]) ? ("CHANNEL " + i) : iv["ch_names"][i], ["head"]));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue