fix: typo

This commit is contained in:
Tobias Reisinger 2020-08-15 13:21:42 +02:00
parent 14c35a4227
commit eca6f7f704
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7) cmake_minimum_required (VERSION 3.7)
project(core project(core
VERSION 0.2.13 VERSION 0.2.14
LANGUAGES C) LANGUAGES C)
add_executable(core src/main.c) add_executable(core src/main.c)

View file

@ -436,7 +436,7 @@ relay_get_controller_id_for_relay(int relay_id)
{ {
sqlite3_stmt *stmt; sqlite3_stmt *stmt;
sqlite3_prepare_v2(global_database, "SELECT controller_id FROM relays WHERE relay_id=?1;", -1, &stmt, NULL); sqlite3_prepare_v2(global_database, "SELECT controller_id FROM relays WHERE id=?1;", -1, &stmt, NULL);
sqlite3_bind_int(stmt, 1, relay_id); sqlite3_bind_int(stmt, 1, relay_id);
return database_helper_get_id(stmt); return database_helper_get_id(stmt);