examples/c++: Fix syntax errors in ads1x15.cxx
examples/c++: Fix syntax errors in ads1x15.cxx

Signed-off-by: Henry Bruce <57ea958cad66de244404958c9a01f7a4ad51b29e@intel.com>
Signed-off-by: Mihai Tudor Panu <a27de6130c5d32f5817bf40bb8b348582f37a8af@intel.com>

nitirohilla/upm,intel-iot-devkit/upm,kissbac/upm,whbruce/upm,jontrulson/upm,skiselev/upm,spitfire88/upm,pylbert/upm,Propanu/upm,malikabhi05/upm,pylbert/upm,andreivasiliu2211/upm,Jon-ICS/upm,skiselev/upm,malikabhi05/upm,jontrulson/upm,stefan-andritoiu/upm,nitirohilla/upm,kissbac/upm,andreivasiliu2211/upm,spitfire88/upm,spitfire88/upm,jontrulson/upm,malikabhi05/upm,spitfire88/upm,Jon-ICS/upm,skiselev/upm,g-vidal/upm,pylbert/upm,pylbert/upm,g-vidal/upm,g-vidal/upm,stefan-andritoiu/upm,skiselev/upm,sasmita/upm,sasmita/upm,kissbac/upm,sasmita/upm,kissbac/upm,pylbert/upm,g-vidal/upm,malikabhi05/upm,intel-iot-devkit/upm,stefan-andritoiu/upm,sasmita/upm,Propanu/upm,pylbert/upm,andreivasiliu2211/upm,intel-iot-devkit/upm,stefan-andritoiu/upm,Propanu/upm,malikabhi05/upm,Propanu/upm,jontrulson/upm,nitirohilla/upm,whbruce/upm,skiselev/upm,malikabhi05/upm,whbruce/upm,jontrulson/upm,nitirohilla/upm,Jon-ICS/upm,stefan-andritoiu/upm,g-vidal/upm,stefan-andritoiu/upm,Propanu/upm,nitirohilla/upm,skiselev/upm,spitfire88/upm,Jon-ICS/upm,Jon-ICS/upm,Propanu/upm,andreivasiliu2211/upm,andreivasiliu2211/upm,intel-iot-devkit/upm,sasmita/upm,g-vidal/upm,intel-iot-devkit/upm,whbruce/upm,kissbac/upm,whbruce/upm,intel-iot-devkit/upm