From 8a92484b0cc1cd2e2f0e026ef1982a56feccd26f Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Mon, 27 Nov 2017 12:36:20 +0100 Subject: Add debug function dump_cylinders This function can be used to dump print all cylinder data. Signed-off-by: Stefan Fuchs --- qt-models/cylindermodel.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt-models') diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp index e61926084..3979b13b6 100644 --- a/qt-models/cylindermodel.cpp +++ b/qt-models/cylindermodel.cpp @@ -488,6 +488,9 @@ void CylindersModel::updateDive() { clear(); rows = 0; +#ifdef DEBUG_CYL + dump_cylinders(&displayed_dive, true); +#endif for (int i = 0; i < MAX_CYLINDERS; i++) { if (show_cylinder(&displayed_dive, i)) rows = i + 1; -- cgit v1.2.3-70-g09d2