Make slaves send their module id to the master.

This commit is contained in:
László Monda
2017-10-05 17:26:10 +02:00
parent 21beb59cb6
commit bd76fb44c2
5 changed files with 41 additions and 9 deletions

View File

@@ -70,6 +70,11 @@ void SlaveTxHandler(void)
TxMessage.length = SLAVE_SYNC_STRING_LENGTH;
break;
}
case SlaveProperty_ModuleId: {
TxMessage.data[0] = ModuleId_LeftKeyboardHalf;
TxMessage.length = 1;
break;
}
case SlaveProperty_Features: {
uhk_module_features_t *moduleFeatures = (uhk_module_features_t*)&TxMessage.data;
moduleFeatures->keyCount = MODULE_KEY_COUNT;