Example #1
0
static void hottPrepareMessages(void)
{
    hottPrepareEAMResponse(&hottEAMMessage);
#ifdef GPS
    hottPrepareGPSResponse(&hottGPSMessage);
#endif
}
Example #2
0
static bool processBinaryModeRequest(uint8_t address)
{
    switch (address) {
#ifdef USE_GPS
    case 0x8A:
        if (sensors(SENSOR_GPS)) {
            hottPrepareGPSResponse(&hottGPSMessage);
            hottQueueSendResponse((uint8_t *)&hottGPSMessage, sizeof(hottGPSMessage));
            return true;
        }
        break;
#endif
    case 0x8E:
        hottPrepareEAMResponse(&hottEAMMessage);
        hottQueueSendResponse((uint8_t *)&hottEAMMessage, sizeof(hottEAMMessage));
        return true;
    }

    return false;
}