Цитата:
Сообщение от BNSF9399
|
Тоже попробовал, на совершенно "чистом" ноуте запустить скетч 4.77, с библиотеками, которые лежат с ним в архиве, в
этом сообщении
Ошибка вылезает:
Код:
Arduino: 1.8.5 (Linux), Плата:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
/home/alex/Arduino/Z21_Ethernet_DCC_Zentrale_v477_MSH/Z21_Ethernet_DCC_Zentrale_v477_MSH/Z21_Ethernet_DCC_Zentrale_v477_MSH.ino: In function 'void setup()':
Z21_Ethernet_DCC_Zentrale_v477_MSH:766: error: no matching function for call to 'DCCPacketScheduler::setup(int, int, bool, int)'
dcc.setup(DCCPin, 0, false, SwitchFormat); //no NDCC and no RAILCOM
^
/home/alex/Arduino/Z21_Ethernet_DCC_Zentrale_v477_MSH/Z21_Ethernet_DCC_Zentrale_v477_MSH/Z21_Ethernet_DCC_Zentrale_v477_MSH.ino:766:47: note: candidates are:
In file included from /home/alex/Arduino/Z21_Ethernet_DCC_Zentrale_v477_MSH/Z21_Ethernet_DCC_Zentrale_v477_MSH/Z21_Ethernet_DCC_Zentrale_v477_MSH.ino:182:0:
/home/alex/Arduino/libraries/DCCInterfaceMaster/DCCPacketScheduler.h:99:7: note: void DCCPacketScheduler::setup(uint8_t, uint8_t)
void setup(uint8_t pin = 6, uint8_t format = ROCO); //for any post-constructor initialization
^
/home/alex/Arduino/libraries/DCCInterfaceMaster/DCCPacketScheduler.h:99:7: note: candidate expects 2 arguments, 4 provided
/home/alex/Arduino/libraries/DCCInterfaceMaster/DCCPacketScheduler.h:100:7: note: void DCCPacketScheduler::setup(uint8_t, uint8_t, uint8_t)
void setup(uint8_t pin, uint8_t pin2, uint8_t format); //for any post-constructor initialization - with RailCom
^
/home/alex/Arduino/libraries/DCCInterfaceMaster/DCCPacketScheduler.h:100:7: note: candidate expects 3 arguments, 4 provided
exit status 1
no matching function for call to 'DCCPacketScheduler::setup(int, int, bool, int)'
Этот отчёт будет иметь больше информации с
включенной опцией Файл -> Настройки ->
"Показать подробный вывод во время компиляции"
А вот с Гатовской библой, которая идёт в архиве со скетчем 4.79, скетч 4.77, компилится нормально. Может всё-таки в архиве 4.77, библа DCCInterfaceMaster не та?