Error while testing GPS, ERROR: failed to close I2C temperature sensor device (err=-1)

Issue: ERROR: failed to close I2C temperature sensor device (err=-1)

Setup: Raspberry pi 4 and rak2287 connected with pihat

Server: configured with chirpstack network gateway(raspberrypi4 + rak2287)is working fine with lora communication but GPS is causing problem
(Raspberry pi + pi_hat + Rak2287)

Details:
pi@rak-gateway:~/rak_common_for_gateway/lora/rak2287 $ ./lora_gateway/test_loragw_gps
Beginning of test for loragw_gps.c
*** Library version information ***
Version: 2.0.1;


CoreCell reset through GPIO17…
This is uart for GPS.
Opening SPI communication interface
Note: chip version is 0x10 (v1.0)
INFO: using legacy timestamp
ARB: dual demodulation disabled for all SF
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
^CClosing SPI communication interface
ERROR: failed to close I2C temperature sensor device (err=-1)
CoreCell reset through GPIO17…

End of test for loragw_gps.c

I’m testing GPS no temperature sensor is connected via I2C still getting this kind of error, I’ve gone through test_loragw_gps.c file warning was in the program but unable to find code contains this ERROR statement, need help?

Thanks,
Prasad

Error was in loragw_hal.c code file,

if (CONTEXT_COM_TYPE == LGW_COM_SPI) {
        DEBUG_MSG("INFO: Closing I2C for temperature sensor\n");
        x = i2c_linuxdev_close(ts_fd);
        if (x != 0) {
            printf("ERROR: failed to close I2C temperature sensor device (err=%i)\n", x);
            err = LGW_HAL_ERROR;
        }

please tell me what to do next to resolve this error.

Thanks,
Prasad