2748 |
return result.Produce(); |
return result.Produce(); |
2749 |
} |
} |
2750 |
|
|
2751 |
|
String LSCPServer::FormatInstrumentsDb() { |
2752 |
|
dmsg(2,("LSCPServer: FormatInstrumentsDb()\n")); |
2753 |
|
LSCPResultSet result; |
2754 |
|
#if HAVE_SQLITE3 |
2755 |
|
try { |
2756 |
|
InstrumentsDb::GetInstrumentsDb()->Format(); |
2757 |
|
} catch (Exception e) { |
2758 |
|
result.Error(e); |
2759 |
|
} |
2760 |
|
#else |
2761 |
|
result.Error(String(DOESNT_HAVE_SQLITE3), 0); |
2762 |
|
#endif |
2763 |
|
return result.Produce(); |
2764 |
|
} |
2765 |
|
|
2766 |
|
|
2767 |
/** |
/** |
2768 |
* Will be called by the parser to enable or disable echo mode; if echo |
* Will be called by the parser to enable or disable echo mode; if echo |