Skip to content

Commit 658bca9

Browse files
committed
CentralScene fast report down
1 parent f83c9e8 commit 658bca9

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

hardware/arduino/zunoG2/cores/ZWSupport/CommandQueue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ void ZWQProcess(){
353353
}
354354

355355
// Check if we have a free channel to send the package
356-
if(zunoCheckSystemQueueStatus(q_ch)) {
356+
if(info->report.fast == false && zunoCheckSystemQueueStatus(q_ch)) {
357357
queue_bit_mask = queue_bit_mask | (0x1 << (q_ch));
358358
continue; // Needed queue is full for this priority - just skip the package
359359
}

hardware/arduino/zunoG2/cores/ZWSupport/ZWCCCentralScene.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ static void _CCCentralSceneReport_common(uint8_t event, ZunoCentralSceneParamete
203203

204204
_lock(parameter_list, ms);
205205
fillOutgoingReportPacketAsync(frame_report, 0x0);
206+
if (event == CENTRAL_SCENE_KEY_HELD_DOWN)
207+
{
208+
frame_report->info.report.fast = true;
209+
}
206210
report = (ZW_CENTRAL_SCENE_NOTIFICATION_V3_FRAME *)&frame_report->info.packet.cmd[0x0];
207211
report->cmdClass = COMMAND_CLASS_CENTRAL_SCENE;
208212
report->cmd = CENTRAL_SCENE_NOTIFICATION;

hardware/arduino/zunoG2/cores/ZWSupport/ZWSupport.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ bool fillOutgoingRawPacket(ZUNOCommandPacket_t *info, uint8_t * d, uint8_t ch, u
299299
ZUNOCommandCmd_t *p;
300300

301301
info->report.valid = false;
302+
info->report.fast = false;
302303
p = &info->packet;
303304
bool res = true;
304305
memset(p, 0, sizeof(p[0x0]));

hardware/arduino/zunoG2/cores/ZWSupport/ZWSupport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ typedef struct ZUNOCommandReport_t
136136
ZUNOCommandHandlerOption_t option;
137137
bool outside;
138138
bool valid;
139+
bool fast;
139140
} ZUNOCommandReport_s;
140141

141142
typedef struct ZUNOCommandPacket_t

0 commit comments

Comments
 (0)