mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 06:02:05 +00:00
Cast to char to satisfy compiler
This commit is contained in:
parent
67d3cafc6f
commit
f8ea9c0e40
@ -273,7 +273,7 @@ int32_t ButtonThread::runOnce()
|
|||||||
|
|
||||||
// Forward single press to InputBroker (but NOT as DOWN/SELECT, just forward a "button press" event)
|
// Forward single press to InputBroker (but NOT as DOWN/SELECT, just forward a "button press" event)
|
||||||
if (inputBroker) {
|
if (inputBroker) {
|
||||||
InputEvent evt = {"button", INPUT_BROKER_MSG_BUTTON_PRESSED, 0, 0, 0};
|
InputEvent evt = {"button", (char)INPUT_BROKER_MSG_BUTTON_PRESSED, 0, 0, 0};
|
||||||
inputBroker->injectInputEvent(&evt);
|
inputBroker->injectInputEvent(&evt);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -291,7 +291,7 @@ int32_t ButtonThread::runOnce()
|
|||||||
|
|
||||||
// Forward single press to InputBroker (but NOT as DOWN/SELECT, just forward a "button press" event)
|
// Forward single press to InputBroker (but NOT as DOWN/SELECT, just forward a "button press" event)
|
||||||
if (inputBroker) {
|
if (inputBroker) {
|
||||||
InputEvent evt = {"button", INPUT_BROKER_MSG_BUTTON_DOUBLE_PRESSED, 0, 0, 0};
|
InputEvent evt = {"button", (char)INPUT_BROKER_MSG_BUTTON_DOUBLE_PRESSED, 0, 0, 0};
|
||||||
inputBroker->injectInputEvent(&evt);
|
inputBroker->injectInputEvent(&evt);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -307,7 +307,7 @@ int32_t ButtonThread::runOnce()
|
|||||||
|
|
||||||
// Forward long press to InputBroker (but NOT as DOWN/SELECT, just forward a "button long press" event)
|
// Forward long press to InputBroker (but NOT as DOWN/SELECT, just forward a "button long press" event)
|
||||||
if (inputBroker) {
|
if (inputBroker) {
|
||||||
InputEvent evt = {"button", INPUT_BROKER_MSG_BUTTON_LONG_PRESSED, 0, 0, 0};
|
InputEvent evt = {"button", (char)INPUT_BROKER_MSG_BUTTON_LONG_PRESSED, 0, 0, 0};
|
||||||
inputBroker->injectInputEvent(&evt);
|
inputBroker->injectInputEvent(&evt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user