Add debug function dump_cylinders

This function can be used to dump print all cylinder data.

Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
Stefan Fuchs 2017-11-27 12:36:20 +01:00 committed by Lubomir I. Ivanov
parent 4e36b2509c
commit 8a92484b0c
3 changed files with 27 additions and 0 deletions

View file

@ -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;